< Summary

Class:TrafficLights
Assembly:Assembly-CSharp
File(s):File 1: D:/--UnityProject/VR/_____ISSTA 26/wheelchair-sim/Assets/Scripts/Test/TrafficLights.cs
File 2: E:/Unity/Unity Project/wheelchair-sim/Assets/Scripts/Test/TrafficLights.cs
Covered lines:18
Uncovered lines:18
Coverable lines:36
Total lines:42
Line coverage:50% (18 of 36)
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
File 1: Start()0%00043.75%
File 1: Update()0%000100%
File 2: Start()0%00043.75%
File 2: Update()0%000100%

File(s)

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

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5public class TrafficLights : MonoBehaviour
 6{
 7    public Light Red;
 8    public Light Green;
 9    public Light Yellow;
 10
 11
 12
 13    // Start is called before the first frame update
 14    IEnumerator Start()
 1415    {
 1416        Yellow.enabled = false;
 17
 1418        while (true)
 1419        {
 1420            Green.enabled = true;
 1421            Red.enabled = false;
 1422            yield return new WaitForSeconds(30);
 023            Debug.Log("on");
 024            Yellow.enabled = true;
 025            Green.enabled = false;
 026            yield return new WaitForSeconds(5);
 027            Debug.Log("on");
 028            Red.enabled = true;
 029            Yellow.enabled = false;
 030            yield return new WaitForSeconds(30);
 31
 032        }
 33
 34    }
 35
 36
 37    // Update is called once per frame
 38    void Update()
 351439    {
 40
 351441    }
 42}

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

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

Methods/Properties

Start()
Update()
Start()
Update()