< Summary

Class:TestHelpers_Friends
Assembly:FriendsControllerTests
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/FriendsController/Tests/Helpers/TestHelpers_Friends.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:20
Line coverage:100% (6 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
FakeAddFriend()0%330100%
GetEntry(...)0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/FriendsController/Tests/Helpers/TestHelpers_Friends.cs

#LineLine coverage
 1using System.Collections;
 2using UnityEngine;
 3
 4public static class TestHelpers_Friends
 5{
 6    public static IEnumerator FakeAddFriend(FriendsController_Mock controller, FriendsHUDView hudView, string id, Friend
 7    {
 138        UserProfileModel model = new UserProfileModel()
 9        {
 10            userId = id,
 11            name = id,
 12        };
 13
 1314        UserProfileController.i.AddUserProfileToCatalog(model);
 1315        controller.RaiseUpdateFriendship(id, action);
 3716        yield return new WaitUntil(() => hudView.friendsList.creationQueue.Count == 0);
 1317    }
 18
 519    public static FriendEntry GetEntry(FriendsHUDView hudView, string id) { return hudView.friendsList.GetEntry(id) as F
 20}