< Summary

Class:UserProfileWebInterfaceBridge
Assembly:UserProfile
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/UserProfile/UserProfileWebInterfaceBridge.cs
Covered lines:1
Uncovered lines:6
Coverable lines:7
Total lines:26
Line coverage:14.2% (1 of 7)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
SaveUnverifiedName(...)0%2100%
SaveDescription(...)0%2100%
GetOwn()0%110100%
AddUserProfileToCatalog(...)0%2100%
Get(...)0%2100%
GetByName(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/UserProfile/UserProfileWebInterfaceBridge.cs

#LineLine coverage
 1using System.Linq;
 2using DCL.Interface;
 3
 4public class UserProfileWebInterfaceBridge : IUserProfileBridge
 5{
 06    public void SaveUnverifiedName(string name) => WebInterface.SendSaveUserUnverifiedName(name);
 7
 08    public void SaveDescription(string description) => WebInterface.SendSaveUserDescription(description);
 9
 310    public UserProfile GetOwn() => UserProfile.GetOwnUserProfile();
 11
 12    public void AddUserProfileToCatalog(UserProfileModel userProfileModel)
 13    {
 014        UserProfileController.i.AddUserProfileToCatalog(userProfileModel);
 015    }
 16
 17    public UserProfile Get(string userId)
 18    {
 019        return UserProfileController.userProfilesCatalog.Get(userId);
 20    }
 21
 22    public UserProfile GetByName(string userNameOrId)
 23    {
 024        return UserProfileController.userProfilesCatalog.GetValues().FirstOrDefault(p => p.userName == userNameOrId);
 25    }
 26}