< Summary

Class:DCL.Chat.Channels.Channel
Assembly:ChatController
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/ChatController/Channels/Channel.cs
Covered lines:24
Uncovered lines:0
Coverable lines:24
Total lines:35
Line coverage:100% (24 of 24)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/ChatController/Channels/Channel.cs

#LineLine coverage
 1namespace DCL.Chat.Channels
 2{
 3    public class Channel
 4    {
 2145        public string ChannelId { get; internal set; }
 1416        public int UnseenMessages { get; internal set; }
 2257        public int MemberCount { get; internal set; }
 2358        public bool Joined { get; internal set; }
 1749        public bool Muted { get; internal set; }
 23410        public string Name { get; internal set; }
 20911        public string Description { get; internal set; }
 12
 13213        public Channel(string channelId, string name, int unseenMessages, int memberCount, bool joined, bool muted, stri
 14        {
 13215            ChannelId = channelId;
 13216            Name = name;
 13217            UnseenMessages = unseenMessages;
 13218            MemberCount = memberCount;
 13219            Joined = joined;
 13220            Muted = muted;
 13221            Description = description;
 13222        }
 23
 24        public void CopyFrom(Channel channel)
 25        {
 126            Name = channel.Name;
 127            ChannelId = channel.ChannelId;
 128            UnseenMessages = channel.UnseenMessages;
 129            MemberCount = channel.MemberCount;
 130            Joined = channel.Joined;
 131            Muted = channel.Muted;
 132            Description = channel.Description;
 133        }
 34    }
 35}