< Summary

Class:audio_controll
Assembly:Test
File(s):D:/--UnityProject/VR/VRExplorer_subjects/VR-Adventure/Assets/Scripts/audio_controll.cs
Covered lines:3
Uncovered lines:3
Coverable lines:6
Total lines:23
Line coverage:50% (3 of 6)
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
Start()0%000100%
OnTriggerEnter(...)0%0000%

File(s)

D:/--UnityProject/VR/VRExplorer_subjects/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()
 414    {
 415        music.Play();
 416    }
 17
 18    private void OnTriggerEnter(Collider other)
 019    {
 020        music.Stop();
 021    }
 22
 23}