< Summary

Class:Ballcanone
Assembly:Test
File(s):E:/Unity/Unity Project/VR-Adventure/Assets/Scripts/Ballcanone.cs
Covered lines:2
Uncovered lines:3
Coverable lines:5
Total lines:27
Line coverage:40% (2 of 5)
Covered branches:0
Total branches:0
Covered methods:1
Total methods:2
Method coverage:50% (1 of 2)

Coverage History

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Update()0%000100%
OnCollisionStay(...)0%0000%

File(s)

E:/Unity/Unity Project/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()
 362116        {
 17
 18
 362119        }
 20    // Update is called once per frame
 21    private void OnCollisionStay(Collision collision)
 022    {
 023        ball.GetComponent<Rigidbody>().velocity = SpawnPoint.position * 2;
 024    }
 25}
 26
 27