< Summary

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

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Environment/HUDContext/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    public class HUDContext : System.IDisposable
 10    {
 11        public readonly IHUDFactory factory = null;
 12        public readonly IHUDController controller = null;
 76513        public HUDContext(IHUDFactory hudFactory, IHUDController hudController)
 14        {
 76515            this.factory = hudFactory;
 76516            this.controller = hudController;
 76517        }
 18
 19        public void Dispose()
 20        {
 78621            controller?.Dispose();
 78622        }
 23    }
 24}