< Summary

Class:MainScripts.DCL.ScriptableObjectsDesktop.CommonScriptableObjectsDesktop
Assembly:ScriptableObjectsDesktop
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Desktop/Scripts/MainScripts/DCL/ScriptableObjectsDesktop/CommonScriptableObjectsDesktop.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:20
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:3
Method coverage:0% (0 of 3)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
GetOrLoad[T](...)0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Desktop/Scripts/MainScripts/DCL/ScriptableObjectsDesktop/CommonScriptableObjectsDesktop.cs

#LineLine coverage
 1using UnityEngine;
 2
 3namespace MainScripts.DCL.ScriptableObjectsDesktop
 4{
 5    public class CommonScriptableObjectsDesktop
 6    {
 7        private static BooleanVariable disableVSyncValue;
 08        public static BooleanVariable disableVSync => GetOrLoad(ref disableVSyncValue, "ScriptableObjectsDesktop/Disable
 9
 10        private static BooleanVariable disableScreenResolutionValue;
 011        public static BooleanVariable disableScreenResolution => GetOrLoad(ref disableScreenResolutionValue, "Scriptable
 12
 13        public static T GetOrLoad<T>(ref T variable, string path) where T: Object
 14        {
 015            if (variable == null) { variable = Resources.Load<T>(path); }
 16
 017            return variable;
 18        }
 19    }
 20}