< Summary

Class:HUDDesktopFactory
Assembly:HUDDesktop
File(s):/tmp/workspace/explorer-desktop/unity-renderer-desktop/Assets/Scripts/MainScripts/DCL/Controllers/HUD/HUDDesktopFactory.cs
Covered lines:0
Uncovered lines:11
Coverable lines:11
Total lines:35
Line coverage:0% (0 of 11)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
CreateHUD(...)0%56700%

File(s)

/tmp/workspace/explorer-desktop/unity-renderer-desktop/Assets/Scripts/MainScripts/DCL/Controllers/HUD/HUDDesktopFactory.cs

#LineLine coverage
 1using DCL;
 2using DCL.Controllers.HUD;
 3using MainScripts.DCL.Controllers.HUD.Profile;
 4using MainScripts.DCL.Controllers.HUD.SettingsPanelHUDDesktop.Scripts;
 5
 6public class HUDDesktopFactory : HUDFactory
 7{
 8    public override IHUD CreateHUD(HUDElementID hudElementId)
 9    {
 010        IHUD hudElement = null;
 11
 12        switch (hudElementId)
 13        {
 14            case HUDElementID.NONE:
 15                break;
 16            case HUDElementID.SETTINGS_PANEL:
 017                hudElement = new SettingsPanelHUDControllerDesktop();
 018                break;
 19            case HUDElementID.PROFILE_HUD:
 020                hudElement = new ProfileHUDControllerDesktop(new UserProfileWebInterfaceBridge());
 021                break;
 22            case HUDElementID.MINIMAP:
 023                hudElement = new MinimapHUDControllerDesktop(MinimapMetadataController.i, new WebInterfaceHomeLocationCo
 024                break;
 25            case HUDElementID.LOADING:
 026                hudElement = new LoadingHUDControllerDesktop();
 027                break;
 28            default:
 029                hudElement = base.CreateHUD(hudElementId);
 30                break;
 31        }
 32
 033        return hudElement;
 34    }
 35}

Methods/Properties

CreateHUD(DCL.HUDElementID)