< Summary

Class:Bowling
Assembly:Test
File(s):D:/--UnityProject/VR/VRExplorer_subjects/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)

D:/--UnityProject/VR/VRExplorer_subjects/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()
 411    {
 412        startPosition = new Vector3(-0.1f, -0.18f, 0.37f);
 13        //startPosition = transform.position;
 414    }
 15
 16    // Update is called once per frame
 17    void Update()
 720518    {
 720919        if(transform.position.z > 1f) {
 420            transform.position = startPosition;
 421            GetComponent<Rigidbody>().velocity = Vector3.zero;
 422        }
 720523    }
 24}

Methods/Properties

Start()
Update()