< Summary

Class:DCL.Asset_AudioClip
Assembly:AssetPromiseKeeper
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/AssetManager/AudioClip/Asset_AudioClip.cs
Covered lines:5
Uncovered lines:3
Coverable lines:8
Total lines:23
Line coverage:62.5% (5 of 8)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/AssetManager/AudioClip/Asset_AudioClip.cs

#LineLine coverage
 1using UnityEngine;
 2
 3namespace DCL
 4{
 5    public class Asset_AudioClip : Asset
 6    {
 07        public AudioClip audioClip { get; internal set; }
 8
 9        public override void Cleanup()
 10        {
 2611            if (audioClip == null)
 612                return;
 13
 2014            audioClip.UnloadAudioData();
 2015            Object.Destroy(audioClip);
 2016        }
 17
 18        public void Dispose()
 19        {
 020            Cleanup();
 021        }
 22    }
 23}