< Summary

Class:SoundPlayer
Assembly:Test
File(s):D:/--UnityProject/VR/_____ISSTA 26/UnityVR_VRAgent/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/_____ISSTA 26/UnityVR_VRAgent/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()
 211    {
 212        source.clip = sound;
 213        source.Play();
 214    }
 15}

Methods/Properties

PlaySound()