< Summary

Class:SpawnPaper
Assembly:Test
File(s):D:/--UnityProject/VR/_____ISSTA 26/UnityVR_VRAgent/Assets/Scripts/SpawnPaper.cs
Covered lines:0
Uncovered lines:7
Coverable lines:7
Total lines:27
Line coverage:0% (0 of 7)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Coverage History

Metrics

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

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()
 017    {
 018        StartCoroutine(ExecuteAfterTime(clip.length));
 019    }
 20
 21    public IEnumerator ExecuteAfterTime(float time)
 022    {
 023        yield return new WaitForSeconds(time);
 024        Instantiate(paperToSpawn, position.transform.position, position.transform.rotation);
 025    }
 26}
 27

Methods/Properties

spawn()
ExecuteAfterTime()