< Summary

Class:PhoneRingScreen
Assembly:Test
File(s):D:/--UnityProject/VR/_____ISSTA 26/VR-Room/Assets/_Course Library/Scripts/Test/PhoneRingScreen.cs
Covered lines:13
Uncovered lines:0
Coverable lines:13
Total lines:28
Line coverage:100% (13 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
Start()0%000100%
Update()0%000100%

File(s)

D:/--UnityProject/VR/_____ISSTA 26/VR-Room/Assets/_Course Library/Scripts/Test/PhoneRingScreen.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5public class PhoneRingScreen : MonoBehaviour
 6{
 7    private AudioSource audioSource;
 8    private Material original_material;
 9    // private Renderer renderer;
 10    public Material calling_material;
 11    void Start()
 212    {
 213        audioSource = GetComponent<AudioSource>();
 214        original_material = GetComponent<Renderer>().material;
 215    }
 16
 17    void Update()
 3586218    {
 3586219        if(audioSource.isPlaying)
 505420        {
 505421            GetComponent<Renderer>().material = calling_material;
 505422        }
 23        else
 3080824        {
 3080825            GetComponent<Renderer>().material = original_material;
 3080826        }
 3586227    }
 28}

Methods/Properties

Start()
Update()