< Summary

Class:DCL.Social.Chat.ChannelLimitReachedWindowComponentView
Assembly:WorldChatWindowHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/WorldChatWindowHUD/ChannelLimitReachedWindowComponentView.cs
Covered lines:6
Uncovered lines:1
Coverable lines:7
Total lines:29
Line coverage:85.7% (6 of 7)
Covered branches:0
Total branches:0
Covered methods:3
Total methods:4
Method coverage:75% (3 of 4)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Show()0%110100%
Hide()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 DCL.Social.Chat;
 2using System;
 3using UnityEngine;
 4
 5namespace DCL.Social.Chat
 6{
 7    public class ChannelLimitReachedWindowComponentView : BaseComponentView, IChannelLimitReachedWindowView
 8    {
 9        [SerializeField] internal ButtonComponentView[] acceptButton;
 10
 11        public event Action OnClose;
 12
 113        public void Show() => gameObject.SetActive(true);
 14
 115        public void Hide() => gameObject.SetActive(false);
 16
 17        public override void Awake()
 18        {
 319            base.Awake();
 20
 2421            foreach (var button in acceptButton)
 1222                button.onClick.AddListener(() => OnClose?.Invoke());
 323        }
 24
 25        public override void RefreshControl()
 26        {
 027        }
 28    }
 29}

Methods/Properties

Show()
Hide()
Awake()
RefreshControl()