< Summary

Class:Bowling
Assembly:Test
File(s):E:/Unity/Unity Project/VR-Adventure/Assets/Scripts/Bowling.cs
Covered lines:9
Uncovered lines:0
Coverable lines:9
Total lines:24
Line coverage:100% (9 of 9)
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
Start()0%000100%
Update()0%000100%

File(s)

E:/Unity/Unity Project/VR-Adventure/Assets/Scripts/Bowling.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5public class Bowling : MonoBehaviour
 6{
 7public Vector3 startPosition;
 8
 9    // Start is called before the first frame update
 10    void Start()
 111    {
 112        startPosition = new Vector3(-0.1f, -0.18f, 0.37f);
 13        //startPosition = transform.position;
 114    }
 15
 16    // Update is called once per frame
 17    void Update()
 362118    {
 362219        if(transform.position.z > 1f) {
 120            transform.position = startPosition;
 121            GetComponent<Rigidbody>().velocity = Vector3.zero;
 122        }
 362123    }
 24}

Methods/Properties

Start()
Update()