< Summary

Class:FriendEntry
Assembly:FriendsHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/FriendsHUD/Scripts/Entries/FriendEntry.cs
Covered lines:9
Uncovered lines:0
Coverable lines:9
Total lines:29
Line coverage:100% (9 of 9)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Awake()0%110100%
Start()0%110100%
Populate(...)0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/FriendsHUD/Scripts/Entries/FriendEntry.cs

#LineLine coverage
 1using UnityEngine;
 2using UnityEngine.UI;
 3
 4public class FriendEntry : FriendEntryBase
 5{
 6    public event System.Action<FriendEntry> OnWhisperClick;
 7    public event System.Action<FriendEntry> OnJumpInClick;
 8
 9    [SerializeField] internal JumpInButton jumpInButton;
 10    [SerializeField] internal Button whisperButton;
 11    [SerializeField] internal UnreadNotificationBadge unreadNotificationBadge;
 12
 13    public override void Awake()
 14    {
 4415        base.Awake();
 16
 4417        whisperButton.onClick.RemoveAllListeners();
 4618        whisperButton.onClick.AddListener(() => OnWhisperClick?.Invoke(this));
 4419    }
 20
 21    private void Start()
 22    {
 1523        unreadNotificationBadge.Initialize(ChatController.i, userId);
 1524        jumpInButton.Initialize(FriendsController.i, userId);
 1525        jumpInButton.OnClick += () => OnJumpInClick?.Invoke(this);
 1526    }
 27
 4428    public override void Populate(Model model) { base.Populate(model); }
 29}