< Summary

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

File(s)

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

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5public class audio_controll : MonoBehaviour
 6{
 7    public Collider sphere;
 8    public AudioSource music;
 9
 10
 11
 12    // Start is called before the first frame update
 13    void Start()
 114    {
 115        music.Play();
 116    }
 17
 18    private void OnTriggerEnter(Collider other)
 319    {
 320        music.Stop();
 321    }
 22
 23}