< Summary

Class:DCL.AssetPromiseKeeper_GLTFast_Instance
Assembly:AssetPromiseKeeper
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/AssetManager/GLTFast/AssetPromiseKeeper_GLTFast_Instance.cs
Covered lines:2
Uncovered lines:2
Coverable lines:4
Total lines:24
Line coverage:50% (2 of 4)
Covered branches:0
Total branches:0
Covered methods:2
Total methods:3
Method coverage:66.6% (2 of 3)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
AssetPromiseKeeper_GLTFast_Instance()0%110100%
OnSilentForget(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/AssetManager/GLTFast/AssetPromiseKeeper_GLTFast_Instance.cs

#LineLine coverage
 1//[assembly: InternalsVisibleTo("AssetPromiseKeeper_AssetBundleModelTests")]
 2
 3namespace DCL
 4{
 5    public class AssetPromiseKeeper_GLTFast_Instance : AssetPromiseKeeper<Asset_GLTFast_Instance, AssetLibrary_GLTFast_I
 6    {
 7        private static AssetPromiseKeeper_GLTFast_Instance instance;
 8
 9        public static AssetPromiseKeeper_GLTFast_Instance i
 10        {
 11            get
 12            {
 65713                return instance ??= new AssetPromiseKeeper_GLTFast_Instance();
 14            }
 15        }
 16
 2417        public AssetPromiseKeeper_GLTFast_Instance() : base(new AssetLibrary_GLTFast_Instance()) { }
 18
 19        protected override void OnSilentForget(AssetPromise_GLTFast_Instance promise)
 20        {
 021            promise.asset.Hide();
 022        }
 23    }
 24}