< Summary

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

#LineLine coverage
 1using DCL;
 2using DCL.SettingsCommon.SettingsControllers.BaseControllers;
 3using UnityEngine;
 4
 5namespace MainScripts.DCL.Controllers.Settings.SettingsControllers.SpecificControllers
 6{
 7    [CreateAssetMenu(menuName = "Settings/Controllers/Controls/Profanity Chat Filtering", fileName = "ProfanityChatFilte
 8    public class ProfanityChatFilterControlController : ToggleSettingsControlController
 9    {
 110        public override object GetStoredValue() { return currentGeneralSettings.profanityChatFiltering; }
 11
 12        public override void UpdateSetting(object newValue)
 13        {
 114            var value = (bool) newValue;
 115            currentGeneralSettings.profanityChatFiltering = value;
 116            DataStore.i.settings.profanityChatFilteringEnabled.Set(value);
 117        }
 18    }
 19}