< Summary

Information
Class: Elsa.Bpmn.Hosting.BpmnDiagnosticsCursor
Assembly: Elsa.Bpmn
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Bpmn/Hosting/BpmnDiagnosticsCursor.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 15
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
get_LastSequence()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Bpmn/Hosting/BpmnDiagnosticsCursor.cs

#LineLine coverage
 1namespace Elsa.Bpmn.Hosting;
 2
 3/// <summary>
 4/// The high-water mark of diagnostics a scope has already projected onto its execution log: the numeric ordinal
 5/// of the last <c>diag:N</c> id it turned into a journal entry.
 6/// </summary>
 7/// <remarks>
 8/// Persisted under <see cref="BpmnScopeMemory.DiagnosticsCursorPropertyKey"/>, next to
 9/// <see cref="BpmnScopeMemory.ExecutionStatePropertyKey"/> and <see cref="BpmnScopeMemory.WorkLedgerPropertyKey"/>,
 10/// and serialized the same way. Without it, a scope resumed from persisted state would re-evaluate the same
 11/// surviving diagnostics <c>Bpmn.Model.State.BpmnExecutionState.Prune</c> carried forward and project every one of
 12/// them a second time.
 13/// </remarks>
 14/// <param name="LastSequence">The ordinal of the last diagnostic id (<c>diag:N</c>) already projected.</param>
 66215internal sealed record BpmnDiagnosticsCursor(int LastSequence);

Methods/Properties

get_LastSequence()