< Summary

Class:DCL.HUDContext
Assembly:Environment
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Environment/HUDContext.cs
Covered lines:2
Uncovered lines:3
Coverable lines:5
Total lines:21
Line coverage:40% (2 of 5)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
HUDContext(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Environment/HUDContext.cs

#LineLine coverage
 1using DCL.Controllers;
 2using UnityEngine;
 3
 4namespace DCL
 5{
 6    /// <summary>
 7    /// Context related to all the systems involved in the execution of decentraland scenes.
 8    /// </summary>
 9    [System.Obsolete("This is kept for retrocompatibilty and will be removed in the future. Use Environment.i.serviceLoc
 10    public class HUDContext
 11    {
 12        private ServiceLocator serviceLocator;
 62913        public IHUDFactory factory => serviceLocator.Get<IHUDFactory>();
 3514        public IHUDController controller => serviceLocator.Get<IHUDController>();
 15
 016        public HUDContext (ServiceLocator serviceLocator)
 17        {
 018            this.serviceLocator = serviceLocator;
 019        }
 20    }
 21}