< 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:18
Line coverage:100% (4 of 4)
Covered branches:0
Total branches:0
Covered methods:2
Total methods:2
Method coverage:100% (2 of 2)

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 : SpinBoxSettingsControlController
 8    {
 9        public override object GetStoredValue() =>
 210            (int)currentAudioSettings.chatNotificationType;
 11
 12        public override void UpdateSetting(object newValue)
 13        {
 214            var newNotificationValue = (AudioSettings.ChatNotificationType)newValue;
 215            currentAudioSettings.chatNotificationType = newNotificationValue;
 216        }
 17    }
 18}