< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
TrackedRealmInfo(...)0%2100%
OnFriendAdded(...)0%2100%
OnFriendRemoved(...)0%2100%
ContainRealm(...)0%2100%
Dispose()0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/ExploreV2/Scripts/Common/Friends/TrackedRealmInfo.cs

#LineLine coverage
 1using System;
 2using UnityEngine;
 3
 4public class TrackedRealmInfo : IDisposable
 5{
 6    IRealmTrackerHandler view;
 7
 8    public event Action<TrackedRealmInfo> OnListenerDisposed;
 9
 010    public TrackedRealmInfo(IRealmTrackerHandler view) { this.view = view; }
 11
 012    public void OnFriendAdded(UserProfile profile, Color backgroundColor) { view.OnFriendAdded(profile, backgroundColor)
 13
 014    public void OnFriendRemoved(UserProfile profile) { view.OnFriendRemoved(profile); }
 15
 016    public bool ContainRealm(string serverName) { return view.ContainRealm(serverName); }
 17
 018    public void Dispose() { OnListenerDisposed?.Invoke(this); }
 19}