< Summary - Syki

Information
Class: Syki.Back.Events.Entity
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Events/Entity.cs
Tag: 4_16869239191
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 21
Line coverage: 100%
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 Crap Score Cyclomatic complexity Line coverage
.ctor()100%11100%
AddDomainEvent(...)100%11100%
ClearDomainEvents()100%11100%
GetDomainEvents()100%11100%

File(s)

/home/runner/work/syki/syki/Back/Events/Entity.cs

#LineLine coverage
 1namespace Syki.Back.Events;
 2
 3public abstract class Entity
 4{
 76025    private readonly List<IDomainEvent> _domainEvents = [];
 6
 7    public void AddDomainEvent(IDomainEvent domainEvent)
 8    {
 38509        _domainEvents.Add(domainEvent);
 385010    }
 11
 12    public void ClearDomainEvents()
 13    {
 253014        _domainEvents.Clear();
 253015    }
 16
 17    public IReadOnlyList<IDomainEvent> GetDomainEvents()
 18    {
 747619        return [.. _domainEvents];
 20    }
 21}