< Summary

Information
Class: MoreStructures.PriorityQueues.PushTimestampEra
Assembly: MoreStructures
File(s): /home/runner/work/MoreStructures/MoreStructures/MoreStructures/PriorityQueues/PushTimestampEra.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
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 Cyclomatic complexity Line coverage
.ctor(...)100%1100%
get_Era()100%1100%

File(s)

/home/runner/work/MoreStructures/MoreStructures/MoreStructures/PriorityQueues/PushTimestampEra.cs

#LineLine coverage
 1namespace MoreStructures.PriorityQueues;
 2
 3/// <summary>
 4/// Defines a reference-type object wrapping an <see cref="int"/> <paramref name="Era"/>, which is the integer value,
 5/// all push timestamps of <see cref="PrioritizedItem{T}"/> instances having such base should be part of.
 6/// </summary>
 7/// <param name="Era">The value of the era, the push timestamp refers to. Any integer, positive or negative.</param>
 8/// <remarks>
 9/// The order of push timestamps in different eras is solely determined by the era: push timestamps in lower eras are
 10/// always considered smaller than push timestamps in higher eras, no matter their value.
 11/// <br/>
 12/// Within the same era, higher push timestamps are considered higher than lower push timestamps (i.e. the timestamp
 13/// value is taken into account).
 14/// </remarks>
 4453815public record PushTimestampEra(int Era)
 4453816{
 4453817    /// <summary>
 4453818    /// <inheritdoc cref="PushTimestampEra" path="/param[@name='Era']"/>
 4453819    /// </summary>
 62410620    public int Era { get; set; } = Era;
 4453821}

Methods/Properties

.ctor(System.Int32)
get_Era()