< Summary

Information
Class: Intentum.Persistence.Repositories.NoOpIntentAuditStore
Assembly: Intentum.Persistence
File(s): /home/runner/work/Intentum/Intentum/src/Intentum.Persistence/Repositories/NoOpIntentAuditStore.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 14
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 Cyclomatic complexity NPath complexity Sequence coverage
AppendAsync(...)100%11100%

File(s)

/home/runner/work/Intentum/Intentum/src/Intentum.Persistence/Repositories/NoOpIntentAuditStore.cs

#LineLine coverage
 1using Intentum.Runtime.Audit;
 2
 3namespace Intentum.Persistence.Repositories;
 4
 5/// <summary>
 6/// No-op implementation of <see cref="IIntentAuditStore"/> that discards audit events.
 7/// Use when audit trail is not required or a custom store is not yet implemented.
 8/// </summary>
 9public sealed class NoOpIntentAuditStore : IIntentAuditStore
 10{
 11    /// <inheritdoc />
 12    public Task AppendAsync(IntentAuditEvent auditEvent, CancellationToken cancellationToken = default)
 113        => Task.CompletedTask;
 14}