< 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:9
Uncovered lines:14
Coverable lines:23
Total lines:34
Line coverage:39.1% (9 of 23)
Covered branches:0
Total branches:0

Metrics

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

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    {
 05        public string ChannelId { get; internal set; }
 06        public int UnseenMessages { get; internal set; }
 07        public int MemberCount { get; internal set; }
 08        public bool Joined { get; internal set; }
 09        public bool Muted { get; internal set; }
 010        public string Name { get; internal set; }
 011        public string Description { get; internal set; }
 12
 10213        public Channel(string channelId, string name, int unseenMessages, int memberCount, bool joined, bool muted, stri
 14        {
 10215            ChannelId = channelId;
 10216            Name = name;
 10217            UnseenMessages = unseenMessages;
 10218            MemberCount = memberCount;
 10219            Joined = joined;
 10220            Muted = muted;
 10221            Description = description;
 10222        }
 23
 24        public void CopyFrom(Channel channel)
 25        {
 026            Name = channel.Name;
 027            ChannelId = channel.ChannelId;
 028            UnseenMessages = channel.UnseenMessages;
 029            MemberCount = channel.MemberCount;
 030            Joined = channel.Joined;
 031            Muted = channel.Muted;
 032        }
 33    }
 34}