< Summary

Class:DCL.AssetPromise_EmptyTexture
Assembly:AssetPromiseKeeper
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/AssetManager/Texture/AssetPromise_EmptyTexture.cs
Covered lines:0
Uncovered lines:5
Coverable lines:5
Total lines:21
Line coverage:0% (0 of 5)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
OnLoad(...)0%6200%
AssetPromise_EmptyTexture()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/AssetManager/Texture/AssetPromise_EmptyTexture.cs

#LineLine coverage
 1using System;
 2using DCL.Helpers;
 3using MainScripts.DCL.Analytics.PerformanceAnalytics;
 4using UnityEngine;
 5using UnityEngine.Networking;
 6using UnityEngine.Video;
 7
 8namespace DCL
 9{
 10    public class AssetPromise_EmptyTexture : AssetPromise_Texture
 11    {
 12        protected override void OnLoad(Action OnSuccess, Action<Exception> OnFail)
 13        {
 014            asset.texture = new Texture2D(1, 1);
 015            OnSuccess?.Invoke();
 016        }
 17
 018        public AssetPromise_EmptyTexture() : base("")
 019        { }
 20    }
 21}