< Summary

Class:WinLose
Assembly:Assembly-CSharp
File(s):D:/--UnityProject/VR/_____ISSTA 26/wheelchair-sim/Assets/Scripts/Test/WinLose.cs
Covered lines:9
Uncovered lines:0
Coverable lines:9
Total lines:36
Line coverage:100% (9 of 9)
Covered branches:0
Total branches:0
Covered methods:4
Total methods:4
Method coverage:100% (4 of 4)

Coverage History

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
WinLose()0%000100%
Winlevel()0%000100%
loselevel()0%000100%
Restart()0%000100%

File(s)

D:/--UnityProject/VR/_____ISSTA 26/wheelchair-sim/Assets/Scripts/Test/WinLose.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5public class WinLose : MonoBehaviour
 6{
 7    //bool gameended = false;
 648    public float restartdelay = 2f;
 9
 10    public GameObject LoseUI;
 11    public GameObject WinUI;
 12
 13    public void Winlevel()
 514    {
 515        WinUI.SetActive(true);
 516    }
 17    public void loselevel()
 518    {
 519        LoseUI.SetActive(true);
 520    }
 21    //public void Winlevel()
 22    //{
 23    //    if (gameended == false)
 24    //    {
 25    //        LoseUI.SetActive(true);
 26    //        gameended = true;
 27    //        Debug.Log("You lost");
 28    //        Invoke("Restart", restartdelay);
 29    //    }
 30
 31    //}
 32    public void Restart()
 433    {
 34
 435    }
 36}