< 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
Covered methods:16
Total methods:16
Method coverage:100% (16 of 16)

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    {
 6825        public string ChannelId { get; internal set; }
 5886        public int UnseenMessages { get; internal set; }
 6737        public int MemberCount { get; internal set; }
 7058        public bool Joined { get; internal set; }
 6449        public bool Muted { get; internal set; }
 71110        public string Name { get; internal set; }
 67611        public string Description { get; internal set; }
 12
 57913        public Channel(string channelId, string name, int unseenMessages, int memberCount, bool joined, bool muted, stri
 14        {
 57915            ChannelId = channelId;
 57916            Name = name;
 57917            UnseenMessages = unseenMessages;
 57918            MemberCount = memberCount;
 57919            Joined = joined;
 57920            Muted = muted;
 57921            Description = description;
 57922        }
 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}