< Summary

Class:WinLose
Assembly:Assembly-CSharp
File(s):E:/Unity/Unity Project/wheelchair-sim/Assets/Scripts/Test/WinLose.cs
Covered lines:1
Uncovered lines:8
Coverable lines:9
Total lines:36
Line coverage:11.1% (1 of 9)
Covered branches:0
Total branches:0
Covered methods:1
Total methods:4
Method coverage:25% (1 of 4)

Coverage History

Metrics

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

File(s)

E:/Unity/Unity Project/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;
 278    public float restartdelay = 2f;
 9
 10    public GameObject LoseUI;
 11    public GameObject WinUI;
 12
 13    public void Winlevel()
 014    {
 015        WinUI.SetActive(true);
 016    }
 17    public void loselevel()
 018    {
 019        LoseUI.SetActive(true);
 020    }
 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()
 033    {
 34
 035    }
 36}