< Summary

Class:FindEscape
Assembly:Test
File(s):D:/--UnityProject/VR/_____ISSTA 26/EscapeTheRoomVR/Assets/Test 1/FindEscape.cs
Covered lines:17
Uncovered lines:0
Coverable lines:17
Total lines:26
Line coverage:100% (17 of 17)
Covered branches:0
Total branches:0
Covered methods:1
Total methods:1
Method coverage:100% (1 of 1)

Coverage History

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Escape()0%000100%

File(s)

D:/--UnityProject/VR/_____ISSTA 26/EscapeTheRoomVR/Assets/Test 1/FindEscape.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5public class FindEscape : MonoBehaviour {
 6    // Play audio sequence and show congratulatory messsage for escaping room
 27    public void Escape() {
 28        DigitalClock clock = GameObject.FindGameObjectWithTag ("digitalLED").GetComponent<DigitalClock>();
 29        AudioSource breakEffect = GameObject.FindWithTag("mirror").GetComponent<AudioSource>();
 210        breakEffect.Play();
 211        GameObject.Destroy(GameObject.FindGameObjectWithTag ("reflectionProbe"));
 212        string form = (clock.score == 1) ? "minute" : "minutes";
 213        gameObject.GetComponent<Usable>().Inspect(
 14            string.Format("You've successfully escaped in {0} {1}!", clock.score, form)
 15        );
 216        GameObject.FindWithTag("mirror").GetComponent<Usable>().enabled = false;
 217        GameObject.FindWithTag("mirror").GetComponent<Collectable>().enabled = false;
 218        GameObject.FindWithTag("mirror").GetComponent<Collider>().enabled = false;
 219        AudioSource bgAudio = GameObject.Find("Background Music").GetComponent<AudioSource>();
 220        bgAudio.Stop();
 221        StopCoroutine("PlayTime");
 422        if (clock.pointFlicker && clock.secondsDCV == null) {
 223            StopCoroutine("PlayPointFlicker");
 224        }
 225    }
 26}

Methods/Properties

Escape()