< Summary

Information
Class: cat_cafe.Entities.Bar
Assembly: cat_cafe
File(s): C:\Users\draia\Documents\Dev\N3_CSHARP\cat_cafe\cat_cafe\Entities\Bar.cs
Line coverage
33%
Covered lines: 3
Uncovered lines: 6
Coverable lines: 9
Total lines: 19
Line coverage: 33.3%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
AddCat(...)100%110%
RemoveCat(...)100%110%

File(s)

C:\Users\draia\Documents\Dev\N3_CSHARP\cat_cafe\cat_cafe\Entities\Bar.cs

#LineLine coverage
 1namespace cat_cafe.Entities
 2{
 3    public class Bar
 4    {
 335        public long Id { get; set; }
 286        public string? Name { get; set; }
 297        public List<Cat> Cats { get; set; } = new();
 8
 9        public void AddCat(Cat c)
 010        {
 011            Cats.Add(c);
 012        }
 13        public void RemoveCat(Cat c)
 014        {
 015            Cats.Remove(c);
 016        }
 17    }
 18}
 19