< Summary

Class:DCL.Social.Chat.PublicChatModel
Assembly:WorldChatWindowHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/WorldChatWindowHUD/PublicChatModel.cs
Covered lines:16
Uncovered lines:0
Coverable lines:16
Total lines:38
Line coverage:100% (16 of 16)
Covered branches:0
Total branches:0
Covered methods:2
Total methods:2
Method coverage:100% (2 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PublicChatModel(...)0%110100%
CopyFrom(...)0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/WorldChatWindowHUD/PublicChatModel.cs

#LineLine coverage
 1using System;
 2
 3namespace DCL.Social.Chat
 4{
 5    [Serializable]
 6    public class PublicChatModel : BaseComponentModel
 7    {
 8        public string channelId;
 9        public string name;
 10        public string description;
 11        public bool joined;
 12        public int memberCount;
 13        public bool muted;
 14        public bool showOnlyOnlineMembers;
 15
 11116        public PublicChatModel(string channelId, string name, string description, bool joined,
 17            int memberCount, bool muted, bool showOnlyOnlineMembers)
 18        {
 11119            this.channelId = channelId;
 11120            this.name = name;
 11121            this.description = description;
 11122            this.joined = joined;
 11123            this.memberCount = memberCount;
 11124            this.muted = muted;
 11125            this.showOnlyOnlineMembers = showOnlyOnlineMembers;
 11126        }
 27
 28        public void CopyFrom(PublicChatModel model)
 29        {
 130            channelId = model.channelId;
 131            name = model.name;
 132            description = model.description;
 133            joined = model.joined;
 134            memberCount = model.memberCount;
 135            muted = model.muted;
 136        }
 37    }
 38}