< Summary

Class:UserProfileModel
Assembly:UserProfile
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/UserProfile/UserProfileModel.cs
Covered lines:2
Uncovered lines:1
Coverable lines:3
Total lines:51
Line coverage:66.6% (2 of 3)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
UserProfileModel()0%110100%
Clone()0%2100%

File(s)

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

#LineLine coverage
 1using System.Collections.Generic;
 2
 3[System.Serializable]
 4public class UserProfileModel
 5{
 6    [System.Serializable]
 7    public class Snapshots
 8    {
 9        public string face;
 10        public string face128;
 11        public string face256;
 12        public string body;
 13    }
 14
 15    [System.Serializable]
 16    public class ParcelsWithAccess
 17    {
 18        public int x;
 19        public int y;
 20        public LandRole landRole;
 21
 22        [System.Serializable]
 23        public enum LandRole
 24        {
 25            OWNER = 0,
 26            OPERATOR = 1
 27        }
 28    }
 29
 30    public string userId;
 31    public string ethAddress;
 32    public string name;
 33    public string email;
 34    public string description;
 35    public ParcelsWithAccess[] parcelsWithAccess;
 36    public ulong created_at;
 37    public ulong updated_at;
 38    public string version;
 39    public AvatarModel avatar;
 40    public string[] inventory;
 28441    public Snapshots snapshots = new Snapshots();
 042    public UserProfileModel Clone() => (UserProfileModel)MemberwiseClone();
 43
 28444    public bool hasConnectedWeb3 = true;
 45
 46    public int tutorialFlagsMask;
 47    public List<string> blocked;
 48    public List<string> muted;
 49    public int tutorialStep;
 50    public bool hasClaimedName = false;
 51}

Methods/Properties

UserProfileModel()
Clone()