< Summary

Class:DCLPlugins.RealmsPlugin.RealmsBlockerModifier
Assembly:DCL.Plugins.RealmsPlugin
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/RealmsPlugin/RealmsBlockerModifier.cs
Covered lines:2
Uncovered lines:1
Coverable lines:3
Total lines:21
Line coverage:66.6% (2 of 3)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
OnEnteredRealm(...)0%220100%
Dispose()0%110100%
ShouldGreenBlockersBeActive(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/RealmsPlugin/RealmsBlockerModifier.cs

#LineLine coverage
 1using DCL;
 2using Decentraland.Bff;
 3using UnityEngine;
 4
 5namespace DCLPlugins.RealmsPlugin
 6{
 7    public class RealmsBlockerModifier : IRealmsModifier
 8    {
 9
 10        public void OnEnteredRealm(bool isCatalyst, AboutResponse realmConfiguration) =>
 811            Environment.i.world.blockersController.SetEnabled(isCatalyst || ShouldGreenBlockersBeActive(realmConfigurati
 12
 413        public void Dispose() { }
 14
 15        private bool ShouldGreenBlockersBeActive(string cityLoaderContentServers)
 16        {
 017            return !string.IsNullOrEmpty(cityLoaderContentServers);
 18        }
 19
 20    }
 21}