< Summary

Class:DCL.SceneReferences
Assembly:InitialSceneReferences
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/InitialSceneReferences/SceneReferences.cs
Covered lines:12
Uncovered lines:14
Coverable lines:26
Total lines:53
Line coverage:46.1% (12 of 26)
Covered branches:0
Total branches:0
Covered methods:24
Total methods:26
Method coverage:92.3% (24 of 26)

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/InitialSceneReferences/SceneReferences.cs

#LineLine coverage
 1using System.Data.Common;
 2using Cinemachine;
 3using DCL.Camera;
 4using DCL.Helpers;
 5using UnityEngine;
 6using UnityEngine.Rendering;
 7
 8namespace DCL
 9{
 10    public class SceneReferences : Singleton<SceneReferences>, ISceneReferences
 11    {
 18512        public MouseCatcher mouseCatcher { get; internal set; }
 8213        public GameObject groundVisual { get; internal set; }
 32414        public InputController inputController { get; internal set; }
 32415        public GameObject cursorCanvas { get; internal set; }
 32416        public PlayerAvatarController playerAvatarController { get; internal set; }
 39717        public CameraController cameraController { get; internal set; }
 32418        public UnityEngine.Camera mainCamera { get; internal set; }
 306219        public GameObject bridgeGameObject { get; internal set; }
 11120        public Light environmentLight { get; internal set; }
 10621        public Volume postProcessVolume { get; internal set; }
 42422        public CinemachineFreeLook thirdPersonCamera { get; internal set; }
 37823        public CinemachineVirtualCamera firstPersonCamera { get; internal set; }
 024        public void Dispose() {  }
 25
 26        public void Initialize(MouseCatcher mouseCatcher,
 27            GameObject groundVisual,
 28            InputController inputController,
 29            GameObject cursorCanvas,
 30            PlayerAvatarController playerAvatarController,
 31            CameraController cameraController,
 32            UnityEngine.Camera mainCamera,
 33            GameObject bridgeGameObject,
 34            Light environmentLight,
 35            Volume postProcessVolume,
 36            CinemachineFreeLook thirdPersonCamera,
 37            CinemachineVirtualCamera firstPersonCamera)
 38        {
 039            this.mouseCatcher = mouseCatcher;
 040            this.groundVisual = groundVisual;
 041            this.inputController = inputController;
 042            this.cursorCanvas = cursorCanvas;
 043            this.playerAvatarController = playerAvatarController;
 044            this.cameraController = cameraController;
 045            this.mainCamera = mainCamera;
 046            this.bridgeGameObject = bridgeGameObject;
 047            this.environmentLight = environmentLight;
 048            this.postProcessVolume = postProcessVolume;
 049            this.thirdPersonCamera = thirdPersonCamera;
 050            this.firstPersonCamera = firstPersonCamera;
 051        }
 52    }
 53}