< Summary

Class:SpawnPaper
Assembly:Test
File(s):D:/--UnityProject/VR/_____ISSTA 26/UnityVR_VRAgent/Assets/Scripts/SpawnPaper.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
Covered methods:2
Total methods:2
Method coverage:100% (2 of 2)

Coverage History

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
spawn()0%000100%
ExecuteAfterTime()0%000100%

File(s)

D:/--UnityProject/VR/_____ISSTA 26/UnityVR_VRAgent/Assets/Scripts/SpawnPaper.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5public class SpawnPaper : MonoBehaviour
 6{
 7    [SerializeField]
 8    private AudioClip clip;
 9
 10    [SerializeField]
 11    private GameObject paperToSpawn;
 12
 13    [SerializeField]
 14    private GameObject position;
 15
 16    public void spawn()
 217    {
 218        StartCoroutine(ExecuteAfterTime(clip.length));
 219    }
 20
 21    public IEnumerator ExecuteAfterTime(float time)
 222    {
 223        yield return new WaitForSeconds(time);
 224        Instantiate(paperToSpawn, position.transform.position, position.transform.rotation);
 225    }
 26}
 27

Methods/Properties

spawn()
ExecuteAfterTime()