< Summary

Class:SpawnPointIndicatorInstantiator
Assembly:DebugPlugins.SpawnpointsDisplayerPlugin
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/DebugPlugins/SpawnPointsDisplayerPlugin/SpawnPointIndicatorInstantiator.cs
Covered lines:0
Uncovered lines:5
Coverable lines:5
Total lines:24
Line coverage:0% (0 of 5)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
SpawnPointIndicatorInstantiator()0%2100%
Instantiate()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/DebugPlugins/SpawnPointsDisplayerPlugin/SpawnPointIndicatorInstantiator.cs

#LineLine coverage
 1using UnityEngine;
 2
 3internal interface ISpawnPointIndicatorInstantiator
 4{
 5    ISpawnPointIndicator Instantiate();
 6}
 7
 8internal class SpawnPointIndicatorInstantiator : ISpawnPointIndicatorInstantiator
 9{
 10    internal const string RESOURCE_PATH = "SpawnPointIndicator";
 11
 12    private readonly SpawnPointIndicatorMonoBehaviour resource;
 13
 014    public SpawnPointIndicatorInstantiator()
 15    {
 016        resource = Resources.Load<SpawnPointIndicatorMonoBehaviour>(RESOURCE_PATH);
 017    }
 18
 19    ISpawnPointIndicator ISpawnPointIndicatorInstantiator.Instantiate()
 20    {
 021        SpawnPointIndicatorMonoBehaviour go = Object.Instantiate(resource);
 022        return new SpawnPointIndicator(go);
 23    }
 24}