< Summary

Class:FriendsHandler
Assembly:ExploreHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/ExploreHUD/Scripts/Handlers/FriendsHandler.cs
Covered lines:3
Uncovered lines:1
Coverable lines:4
Total lines:18
Line coverage:75% (3 of 4)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
FriendsHandler(...)0%2100%
OnFriendAdded(...)0%220100%
OnFriendRemoved(...)0%220100%
ContainCoords(...)0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/ExploreHUD/Scripts/Handlers/FriendsHandler.cs

#LineLine coverage
 1using System;
 2using UnityEngine;
 3
 4internal class FriendsHandler : IFriendTrackerHandler
 5{
 6    public event Action<UserProfile, Color> OnFriendAddedEvent;
 7    public event Action<UserProfile> OnFriendRemovedEvent;
 8
 9    private readonly IMapDataView mapInfoHandler;
 10
 011    public FriendsHandler(IMapDataView mapInfoHandler) { this.mapInfoHandler = mapInfoHandler; }
 12
 413    public void OnFriendAdded(UserProfile profile, Color backgroundColor) { OnFriendAddedEvent?.Invoke(profile, backgrou
 14
 415    public void OnFriendRemoved(UserProfile profile) { OnFriendRemovedEvent?.Invoke(profile); }
 16
 717    public bool ContainCoords(Vector2Int coords) { return mapInfoHandler.ContainCoords(coords); }
 18}