< Summary

Class:DCL.SettingsCommon.SettingsControllers.SpecificControllers.ChatSFXToggleControlController
Assembly:SettingsControllers
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/Settings/SettingsControllers/SpecificControllers/ChatSFXToggleControlController.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/ChatSFXToggleControlController.cs

#LineLine coverage
 1using DCL.SettingsCommon.SettingsControllers.BaseControllers;
 2using UnityEngine;
 3
 4namespace DCL.SettingsCommon.SettingsControllers.SpecificControllers
 5{
 6    [CreateAssetMenu(menuName = "Settings/Controllers/Controls/Chat SFX Toggle", fileName = "ChatSFXToggleControlControl
 7    public class ChatSFXToggleControlController : ToggleSettingsControlController
 8    {
 29        public override object GetStoredValue() { return currentAudioSettings.chatSFXEnabled; }
 10
 11        public override void UpdateSetting(object newValue)
 12        {
 213            bool newBoolValue = (bool)newValue;
 214            currentAudioSettings.chatSFXEnabled = newBoolValue;
 215        }
 16    }
 17}