< Summary

Class:BallSoundController
Assembly:Assembly-CSharp
File(s):File 1: D:/--UnityProject/VR/_____ISSTA 26/BowlingVR/Assets/Script/Test/BallSoundController.cs
File 2: E:/Unity/Unity Project/BowlingVR/Assets/Script/Test/BallSoundController.cs
Covered lines:26
Uncovered lines:8
Coverable lines:34
Total lines:33
Line coverage:76.4% (26 of 34)
Covered branches:0
Total branches:0
Covered methods:8
Total methods:8
Method coverage:100% (8 of 8)

Coverage History

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
File 1: BallSoundController()0%000100%
File 1: Start()0%000100%
File 1: changePeso()0%000100%
File 1: OnCollisionEnter(...)0%00042.86%
File 2: BallSoundController()0%000100%
File 2: Start()0%000100%
File 2: changePeso()0%000100%
File 2: OnCollisionEnter(...)0%00042.86%

File(s)

D:/--UnityProject/VR/_____ISSTA 26/BowlingVR/Assets/Script/Test/BallSoundController.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using TMPro;
 4using UnityEngine;
 5
 6public class BallSoundController : MonoBehaviour
 7{
 1268    public float peso=0.7f;
 1269    public int pesoEnKgs=7;
 12610    private bool hasPlayed = false;
 11
 12    public TextMeshProUGUI textoPeso;
 13
 14    private void Start()
 4915    {
 4916       changePeso();
 4917    }
 18
 19    public void changePeso()
 4920    {
 4921        this.GetComponent<Rigidbody>().mass = peso;
 4922        textoPeso.text = pesoEnKgs.ToString() + "KG";
 4923    }
 24
 25    private void OnCollisionEnter(Collision collision)
 6326    {
 6327        if (collision.gameObject.CompareTag("Bolo") && hasPlayed==false)
 028        {
 029            hasPlayed = true;
 030            gameObject.GetComponent<AudioSource>().Play();
 031        }
 6332    }
 33}

E:/Unity/Unity Project/BowlingVR/Assets/Script/Test/BallSoundController.cs

File 'E:/Unity/Unity Project/BowlingVR/Assets/Script/Test/BallSoundController.cs' does not exist (any more).