< Summary

Class:DCLPlugins.UIRefresherPlugin.UIRefresherPlugin
Assembly:DCL.Plugins.UIRefresher
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/UIRefresherPlugin/UIRefresherPlugin.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:26
Line coverage:100% (6 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
UIRefresherPlugin()0%110100%
Dispose()0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/UIRefresherPlugin/UIRefresherPlugin.cs

#LineLine coverage
 1using System.Collections.Generic;
 2using DCL;
 3using DCL.Components.Interfaces;
 4using Environment = DCL.Environment;
 5
 6namespace DCLPlugins.UIRefresherPlugin
 7{
 8    public class UIRefresherPlugin : IPlugin
 9    {
 10        private readonly UIRefresherController controller;
 11
 5112        public UIRefresherPlugin()
 13        {
 5114            controller = new UIRefresherController(Environment.i.platform.updateEventHandler,
 15                CommonScriptableObjects.sceneNumber,
 16                DataStore.i.HUDs.dirtyShapes);
 5117        }
 18
 19        public void Dispose()
 20        {
 5121            DataStore.i.HUDs.dirtyShapes.Set(new Dictionary<int, Queue<IUIRefreshable>>());
 5122            controller.Dispose();
 5123        }
 24    }
 25
 26}

Methods/Properties

UIRefresherPlugin()
Dispose()