< Summary

Class:CoroutineStarter
Assembly:CoroutineHelpers
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Helpers/CoroutineHelpers/CoroutineStarter.cs
Covered lines:7
Uncovered lines:0
Coverable lines:7
Total lines:29
Line coverage:100% (7 of 7)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Start(...)0%110100%
Stop(...)0%330100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Helpers/CoroutineHelpers/CoroutineStarter.cs

#LineLine coverage
 1using System.Collections;
 2using UnityEngine;
 3
 4public class CoroutineStarter : MonoBehaviour
 5{
 6    private static CoroutineStarter instanceValue;
 7
 8    public static CoroutineStarter instance
 9    {
 10        get
 11        {
 661212            if (instanceValue == null)
 13            {
 63614                instanceValue = new GameObject("_CoroutineStarter").AddComponent<CoroutineStarter>();
 15            }
 16
 661217            return instanceValue;
 18        }
 19    }
 20
 472821    public static Coroutine Start(IEnumerator function) { return instance.StartCoroutine(function); }
 22
 23    public static void Stop(Coroutine coroutine)
 24    {
 186125        if (instanceValue != null && coroutine != null)
 177626            instance.StopCoroutine(coroutine);
 186127    }
 28
 29}