< Summary

Class:Scoremanager
Assembly:Assembly-CSharp
File(s):File 1: D:/--UnityProject/VR/_____ISSTA 26/wheelchair-sim/Assets/Scripts/Test/Scoremanager.cs
File 2: E:/Unity/Unity Project/wheelchair-sim/Assets/Scripts/Test/Scoremanager.cs
Covered lines:20
Uncovered lines:16
Coverable lines:36
Total lines:43
Line coverage:55.5% (20 of 36)
Covered branches:0
Total branches:0
Covered methods:4
Total methods:6
Method coverage:66.6% (4 of 6)

Coverage History

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
File 1: Start()0%000100%
File 1: changescore(...)0%0000%
File 1: Update()0%000100%
File 2: Start()0%000100%
File 2: changescore(...)0%0000%
File 2: Update()0%000100%

File(s)

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

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4using TMPro;
 5
 6public class Scoremanager : MonoBehaviour
 7{
 8    public static Scoremanager instance;
 9    public TextMeshProUGUI ScoreText;
 10    public TextMeshProUGUI AmountUI;
 11    public int StarValue;
 12    public int winAmount;
 13    public WinLose winlosescript;
 14    public TextMeshProUGUI Timer;
 15    int score;
 16    // Start is called before the first frame update
 17    void Start()
 4918    {
 19        //winAmount.winAmount = "Stars to collect: " + AmountUI;
 20
 4921        AmountUI.text = "Star Amount: " + winAmount.ToString();
 4922        if (instance == null)
 4923        {
 4924            instance = this;
 4925        }
 26
 4927    }
 28    public void changescore(int StarValue)
 029    {
 030        score += StarValue;
 031        ScoreText.text = "Stars: " + score.ToString();
 032        if (score == winAmount)
 033        {
 034            winlosescript.Winlevel();
 035        }
 036    }
 37    private void Update()
 1815538    {
 1815539        Timer.text = Time.time.ToString("0.0");
 1815540    }
 41
 42
 43}

E:/Unity/Unity Project/wheelchair-sim/Assets/Scripts/Test/Scoremanager.cs

File 'E:/Unity/Unity Project/wheelchair-sim/Assets/Scripts/Test/Scoremanager.cs' does not exist (any more).