< Summary

Class:RealmHandler
Assembly:ExploreV2
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/ExploreV2/Scripts/Common/Handlers/RealmHandler.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
RealmHandler(...)0%2100%
OnFriendAdded(...)0%6200%
OnFriendRemoved(...)0%6200%
ContainRealm(...)0%2100%

File(s)

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

#LineLine coverage
 1using System;
 2using UnityEngine;
 3
 4public class RealmHandler : IRealmTrackerHandler
 5{
 6    public event Action<UserProfile, Color> OnFriendAddedEvent;
 7    public event Action<UserProfile> OnFriendRemovedEvent;
 8
 9    private readonly IRealmDataView realmInfoHandler;
 10
 011    public RealmHandler(IRealmDataView realmInfoHandler) { this.realmInfoHandler = realmInfoHandler; }
 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 ContainRealm(string serverName) { return realmInfoHandler.ContainRealm(serverName); }
 18}