< 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{
 578    public float peso=0.7f;
 579    public int pesoEnKgs=7;
 5710    private bool hasPlayed = false;
 11
 12    public TextMeshProUGUI textoPeso;
 13
 14    private void Start()
 2115    {
 2116       changePeso();
 2117    }
 18
 19    public void changePeso()
 2120    {
 2121        this.GetComponent<Rigidbody>().mass = peso;
 2122        textoPeso.text = pesoEnKgs.ToString() + "KG";
 2123    }
 24
 25    private void OnCollisionEnter(Collision collision)
 2726    {
 2727        if (collision.gameObject.CompareTag("Bolo") && hasPlayed==false)
 028        {
 029            hasPlayed = true;
 030            gameObject.GetComponent<AudioSource>().Play();
 031        }
 2732    }
 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).