< Summary

Class:PublicChatModel
Assembly:WorldChatWindowHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/WorldChatWindowHUD/PublicChatModel.cs
Covered lines:15
Uncovered lines:0
Coverable lines:15
Total lines:33
Line coverage:100% (15 of 15)
Covered branches:0
Total branches:0

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
 3[Serializable]
 4public class PublicChatModel : BaseComponentModel
 5{
 6    public string channelId;
 7    public string name;
 8    public string description;
 9    public bool joined;
 10    public int memberCount;
 11    public bool muted;
 12
 8613    public PublicChatModel(string channelId, string name, string description, bool joined,
 14        int memberCount, bool muted)
 15    {
 8616        this.channelId = channelId;
 8617        this.name = name;
 8618        this.description = description;
 8619        this.joined = joined;
 8620        this.memberCount = memberCount;
 8621        this.muted = muted;
 8622    }
 23
 24    public void CopyFrom(PublicChatModel model)
 25    {
 126        channelId = model.channelId;
 127        name = model.name;
 128        description = model.description;
 129        joined = model.joined;
 130        memberCount = model.memberCount;
 131        muted = model.muted;
 132    }
 33}