< Summary

Class:DCL.Social.Chat.ChannelLimitReachedWindowPlugin
Assembly:WorldChatWindowHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/WorldChatWindowHUD/ChannelLimitReachedWindowPlugin.cs
Covered lines:0
Uncovered lines:11
Coverable lines:11
Total lines:33
Line coverage:0% (0 of 11)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:3
Method coverage:0% (0 of 3)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
ChannelLimitReachedWindowPlugin()0%2100%
Initialize()0%12300%
Dispose()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/WorldChatWindowHUD/ChannelLimitReachedWindowPlugin.cs

#LineLine coverage
 1using DCL.Social.Chat;
 2using DCL.Providers;
 3using System.Threading;
 4
 5namespace DCL.Social.Chat
 6{
 7    public class ChannelLimitReachedWindowPlugin : IPlugin
 8    {
 09        private readonly CancellationTokenSource cts = new ();
 10
 11        private ChannelLimitReachedWindowController channelLimitReachedWindow;
 12
 013        public ChannelLimitReachedWindowPlugin()
 14        {
 015            Initialize(cts.Token);
 016        }
 17
 18        private async void Initialize(CancellationToken ct)
 19        {
 020            var view = await Environment.i.serviceLocator.Get<IAddressableResourceProvider>()
 21                                        .Instantiate<ChannelLimitReachedWindowComponentView>("ChannelLimitReachedModal",
 22
 023            channelLimitReachedWindow = new ChannelLimitReachedWindowController(view, DataStore.i);
 024        }
 25
 26        public void Dispose()
 27        {
 028            cts.Cancel();
 029            cts.Dispose();
 030            channelLimitReachedWindow.Dispose();
 031        }
 32    }
 33}