< Summary

Class:DCL.AvatarEditor.AvatarEditorHUDPlugin
Assembly:AvatarEditorHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/AvatarEditorHUD/Scripts/AvatarEditorHUDPlugin.cs
Covered lines:0
Uncovered lines:7
Coverable lines:7
Total lines:32
Line coverage:0% (0 of 7)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
AvatarEditorHUDPlugin()0%2100%
Dispose()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/AvatarEditorHUD/Scripts/AvatarEditorHUDPlugin.cs

#LineLine coverage
 1using DCL.Emotes;
 2using DCLServices.WearablesCatalogService;
 3using MainScripts.DCL.Controllers.HUD.CharacterPreview;
 4
 5namespace DCL.AvatarEditor
 6{
 7    public class AvatarEditorHUDPlugin : IPlugin
 8    {
 9        private readonly AvatarEditorHUDController hudController;
 10
 011        public AvatarEditorHUDPlugin()
 12        {
 013            ServiceLocator serviceLocator = Environment.i.serviceLocator;
 14
 015            hudController = new AvatarEditorHUDController(
 16                DataStore.i.featureFlags,
 17                Environment.i.platform.serviceProviders.analytics,
 18                serviceLocator.Get<IWearablesCatalogService>(),
 19                new UserProfileWebInterfaceBridge());
 20
 21            // there could be a race condition going on if we initialize the avatar editor before the feature flags are 
 22            // WearablesCatalogServiceProxy.wearablesCatalogServiceInUse is not defined when is needed to retrieve the w
 23            // since this plugin is bound to backpack_editor_v1 we assume that the feature flags has been already initia
 024            hudController.Initialize(false, new PreviewCameraRotationController());
 025        }
 26
 27        public void Dispose()
 28        {
 029            hudController.Dispose();
 030        }
 31    }
 32}

Methods/Properties

AvatarEditorHUDPlugin()
Dispose()