< Summary

Class:DCL.SettingsCommon.SettingsControllers.SpecificControllers.VoiceChatVolumeControlController
Assembly:SettingsControllers
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/Settings/SettingsControllers/SpecificControllers/VoiceChatVolumeControlController.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:17
Line coverage:100% (4 of 4)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
GetStoredValue()0%110100%
UpdateSetting(...)0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/Settings/SettingsControllers/SpecificControllers/VoiceChatVolumeControlController.cs

#LineLine coverage
 1using DCL.SettingsCommon.SettingsControllers.BaseControllers;
 2using UnityEngine;
 3
 4namespace DCL.SettingsCommon.SettingsControllers.SpecificControllers
 5{
 6    [CreateAssetMenu(menuName = "Settings/Controllers/Controls/Voice Chat Volume", fileName = "VoiceChatVolumeControlCon
 7    public class VoiceChatVolumeControlController : SliderSettingsControlController
 8    {
 29        public override object GetStoredValue() { return currentAudioSettings.voiceChatVolume * 100; }
 10
 11        public override void UpdateSetting(object newValue)
 12        {
 213            currentAudioSettings.voiceChatVolume = (float)newValue * 0.01f;
 214            Settings.i.ApplyVoiceChatSettings();
 215        }
 16    }
 17}