< Summary

Class:SoundPlayer
Assembly:Test
File(s):D:/--UnityProject/VR/subjects1_for_analysis/UnityVR-master (2)/UnityVR-master/Assets/Scripts/SoundPlayer.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:15
Line coverage:100% (4 of 4)
Covered branches:0
Total branches:0
Covered methods:1
Total methods:1
Method coverage:100% (1 of 1)

Coverage History

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PlaySound()0%000100%

File(s)

D:/--UnityProject/VR/subjects1_for_analysis/UnityVR-master (2)/UnityVR-master/Assets/Scripts/SoundPlayer.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5public class SoundPlayer : MonoBehaviour
 6{
 7    public AudioSource source;
 8    public AudioClip sound;
 9
 10   public void PlaySound()
 111    {
 112        source.clip = sound;
 113        source.Play();
 114    }
 15}

Methods/Properties

PlaySound()