< Summary

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

Metrics

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

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;
 49313        public IHUDFactory factory => serviceLocator.Get<IHUDFactory>();
 014        public IHUDController controller => serviceLocator.Get<IHUDController>();
 15
 71516        public HUDContext (ServiceLocator serviceLocator)
 17        {
 71518            this.serviceLocator = serviceLocator;
 71519        }
 20    }
 21}