< Summary

Class:DCL.Asset_Material
Assembly:AssetPromiseKeeper
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/AssetManager/Material/Asset_Material.cs
Covered lines:7
Uncovered lines:0
Coverable lines:7
Total lines:27
Line coverage:100% (7 of 7)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Cleanup()0%220100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/AssetManager/Material/Asset_Material.cs

#LineLine coverage
 1using DCL.Helpers;
 2using UnityEngine;
 3
 4namespace DCL
 5{
 6    public class Asset_Material : Asset
 7    {
 8        public Material material;
 9
 10        internal AssetPromise_Texture emissiveTexturePromise;
 11        internal AssetPromise_Texture alphaTexturetPromise;
 12        internal AssetPromise_Texture albedoTexturePromise;
 13        internal AssetPromise_Texture bumpTexturePormise;
 14
 15        public override void Cleanup()
 16        {
 3717            if (material != null)
 18            {
 2819                Utils.SafeDestroy(material);
 20            }
 3721            AssetPromiseKeeper_Texture.i.Forget(emissiveTexturePromise);
 3722            AssetPromiseKeeper_Texture.i.Forget(alphaTexturetPromise);
 3723            AssetPromiseKeeper_Texture.i.Forget(albedoTexturePromise);
 3724            AssetPromiseKeeper_Texture.i.Forget(bumpTexturePormise);
 3725        }
 26    }
 27}

Methods/Properties

Cleanup()