< Summary

Class:DCL.SettingsCommon.SettingsControllers.SpecificControllers.SceneSFXVolumeControlController
Assembly:SettingsControllers
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/Settings/SettingsControllers/SpecificControllers/SceneSFXVolumeControlController.cs
Covered lines:3
Uncovered lines:0
Coverable lines:3
Total lines:15
Line coverage:100% (3 of 3)
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/SceneSFXVolumeControlController.cs

#LineLine coverage
 1using DCL.SettingsCommon.SettingsControllers.BaseControllers;
 2using UnityEngine;
 3
 4namespace DCL.SettingsCommon.SettingsControllers.SpecificControllers
 5{
 6    [CreateAssetMenu(menuName = "Settings/Controllers/Controls/Scene SFX Volume", fileName = "SceneSFXVolumeControlContr
 7    public class SceneSFXVolumeControlController : SliderSettingsControlController
 8    {
 29        public override object GetStoredValue() { return currentAudioSettings.sceneSFXVolume * 100; }
 10
 11        public override void UpdateSetting(object newValue) {
 212            currentAudioSettings.sceneSFXVolume = (float)newValue * 0.01f;
 213        }
 14    }
 15}