< Summary

Class:DCL.DebugView
Assembly:DebugController
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/DebugController/DebugView.cs
Covered lines:2
Uncovered lines:6
Coverable lines:8
Total lines:34
Line coverage:25% (2 of 8)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
ShowFPSPanel()0%110100%
HideFPSPanel()0%110100%
SetSceneDebugPanel()0%2100%
SetEngineDebugPanel()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/DebugController/DebugView.cs

#LineLine coverage
 1using UnityEngine;
 2
 3namespace DCL
 4{
 5    public class DebugView : MonoBehaviour
 6    {
 7        [Header("Debug Tools")]
 8        [SerializeField]
 9        private GameObject fpsPanel;
 10
 11        [Header("Debug Panel")]
 12        [SerializeField]
 13        private GameObject engineDebugPanel;
 14
 15        [SerializeField]
 16        private GameObject sceneDebugPanel;
 17
 2018        public void ShowFPSPanel() { fpsPanel.SetActive(true); }
 19
 220        public void HideFPSPanel() { fpsPanel.SetActive(false); }
 21
 22        public void SetSceneDebugPanel()
 23        {
 024            engineDebugPanel.SetActive(false);
 025            sceneDebugPanel.SetActive(true);
 026        }
 27
 28        public void SetEngineDebugPanel()
 29        {
 030            sceneDebugPanel.SetActive(false);
 031            engineDebugPanel.SetActive(true);
 032        }
 33    }
 34}