< Summary

Class:MainScripts.DCL.ScriptableObjectsDesktop.CommonScriptableObjectsDesktop
Assembly:ScriptableObjectsDesktop
File(s):/tmp/workspace/explorer-desktop/unity-renderer-desktop/Assets/Scripts/MainScripts/DCL/ScriptableObjectsDesktop/CommonScriptableObjectsDesktop.cs
Covered lines:0
Uncovered lines:5
Coverable lines:5
Total lines:23
Line coverage:0% (0 of 5)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/explorer-desktop/unity-renderer-desktop/Assets/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)
 16            {
 017                variable = Resources.Load<T>(path);
 18            }
 19
 020            return variable;
 21        }
 22    }
 23}