< Summary

Class:Inspectable
Assembly:Test
File(s):D:/--UnityProject/VR/_____ISSTA 26/EscapeTheRoomVR/Assets/Test 1/Inspectable.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:18
Line coverage:100% (6 of 6)
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
Inspect()0%000100%
Inspect(...)0%000100%

File(s)

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

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5public class Inspectable : MonoBehaviour {
 6
 7  public string inspectMessage;
 8
 109  public void Inspect() {
 10        // Show default observation text
 1011    Inspect(inspectMessage);
 1012  }
 13
 1114  public void Inspect(string msg) {
 15        // Show specific message in response to use of item
 1116    GameObject.Find("SubtitlesCanvas/MessageText").GetComponent<ShowMessage>().RunMessage(msg);
 1117  }
 18}

Methods/Properties

Inspect()
Inspect(System.String)