< Summary

Class:Timeout
Assembly:Test
File(s):D:/--UnityProject/VR/_____ISSTA 26/UnityVR_VRAgent/Assets/Scripts/Timeout.cs
Covered lines:10
Uncovered lines:3
Coverable lines:13
Total lines:29
Line coverage:76.9% (10 of 13)
Covered branches:0
Total branches:0
Covered methods:3
Total methods:3
Method coverage:100% (3 of 3)

Coverage History

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Start()0%000100%
Update()0%00050%
ExecuteAfterTime()0%000100%

File(s)

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

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4using UnityEngine.UI;
 5
 6public class Timeout : MonoBehaviour
 7{
 8    public GameObject canvas;
 9
 10    // Start is called before the first frame update
 11    void Start()
 412    {
 413        StartCoroutine(ExecuteAfterTime(60));
 414    }
 15
 16    private void Update()
 1804017    {
 1804018        if (Input.GetButtonDown("Fire1"))
 019        {
 020            canvas.SetActive(false);
 021        }
 1804022    }
 23
 24    public IEnumerator ExecuteAfterTime(float time)
 425    {
 426        yield return new WaitForSeconds(time);
 127        canvas.SetActive(false);
 128    }
 29}

Methods/Properties

Start()
Update()
ExecuteAfterTime()