< Summary

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

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/ExploreV2/Scripts/Common/Handlers/FriendsHandler.cs

#LineLine coverage
 1using System;
 2using UnityEngine;
 3
 4public 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
 013    public void OnFriendAdded(UserProfile profile, Color backgroundColor) { OnFriendAddedEvent?.Invoke(profile, backgrou
 14
 015    public void OnFriendRemoved(UserProfile profile) { OnFriendRemovedEvent?.Invoke(profile); }
 16
 017    public bool ContainCoords(Vector2Int coords) { return mapInfoHandler.ContainCoords(coords); }
 18}