< Summary

Class:DCL.Chat.HUD.ChannelLimitReachedWindowComponentView
Assembly:WorldChatWindowHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/WorldChatWindowHUD/ChannelLimitReachedWindowComponentView.cs
Covered lines:7
Uncovered lines:1
Coverable lines:8
Total lines:34
Line coverage:87.5% (7 of 8)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Show()0%110100%
Hide()0%110100%
Create()0%110100%
Awake()0%220100%
RefreshControl()0%2100%

File(s)

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

#LineLine coverage
 1using System;
 2using UnityEngine;
 3
 4namespace DCL.Chat.HUD
 5{
 6    public class ChannelLimitReachedWindowComponentView : BaseComponentView, IChannelLimitReachedWindowView
 7    {
 8        [SerializeField] internal ButtonComponentView[] acceptButton;
 9
 10        public event Action OnClose;
 11
 112        public void Show() => gameObject.SetActive(true);
 13
 114        public void Hide() => gameObject.SetActive(false);
 15
 16        public static ChannelLimitReachedWindowComponentView Create()
 17        {
 318            return Instantiate(
 19                Resources.Load<ChannelLimitReachedWindowComponentView>("SocialBarV1/ChannelLimitReachedModal"));
 20        }
 21
 22        public override void Awake()
 23        {
 324            base.Awake();
 25
 2426            foreach (var button in acceptButton)
 1227                button.onClick.AddListener(() => OnClose?.Invoke());
 328        }
 29
 30        public override void RefreshControl()
 31        {
 032        }
 33    }
 34}