< Summary

Class:Ballcanone
Assembly:Test
File(s):D:/--UnityProject/VR/VRExplorer_subjects/VR-Adventure/Assets/Scripts/Ballcanone.cs
Covered lines:5
Uncovered lines:0
Coverable lines:5
Total lines:27
Line coverage:100% (5 of 5)
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
Update()0%000100%
OnCollisionStay(...)0%000100%

File(s)

D:/--UnityProject/VR/VRExplorer_subjects/VR-Adventure/Assets/Scripts/Ballcanone.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5public class Ballcanone : MonoBehaviour
 6{
 7    public GameObject ball;
 8    public Transform SpawnPoint;
 9    public Collider speedRange;
 10
 11
 12
 13        //Start is called before the first frame update
 14
 15        public void Update()
 720516        {
 17
 18
 720519        }
 20    // Update is called once per frame
 21    private void OnCollisionStay(Collision collision)
 1522    {
 1523        ball.GetComponent<Rigidbody>().velocity = SpawnPoint.position * 2;
 1524    }
 25}
 26
 27