< Summary

Class:PlayerTriggers
Assembly:Assembly-CSharp
File(s):D:/--UnityProject/VR/_____ISSTA 26/wheelchair-sim/Assets/Scripts/Test/PlayerTriggers.cs
Covered lines:5
Uncovered lines:8
Coverable lines:13
Total lines:31
Line coverage:38.4% (5 of 13)
Covered branches:0
Total branches:0
Covered methods:2
Total methods:2
Method coverage:100% (2 of 2)

Coverage History

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PlayerTriggers()0%000100%
OnTriggerEnter(...)0%00033.33%

File(s)

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

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5public class PlayerTriggers : MonoBehaviour
 6{
 7    public WinLose winlosescript;
 448    public int StarValue = 1;
 9
 10
 11    private void OnTriggerEnter(Collider other)
 1012    {
 1013        if (other.gameObject.CompareTag("Cars"))
 014        {
 015            Debug.Log("HIt");
 016            winlosescript.loselevel();
 17
 18
 019        }
 20
 1021        else if (other.gameObject.CompareTag("WinBox"))
 022        {
 023            Scoremanager.instance.changescore(StarValue);
 024            Destroy(other.gameObject);
 025        }
 26
 1027    }
 28
 29
 30
 31}