< Summary

Information
Class: MoreStructures.SuffixTrees.Builders.Ukkonen.MovingEnd
Assembly: MoreStructures
File(s): /home/runner/work/MoreStructures/MoreStructures/MoreStructures/SuffixTrees/Builders/Ukkonen/MovingEnd.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 30
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
get_Value()100%1100%
.ctor(...)100%1100%
ToString()100%1100%

File(s)

/home/runner/work/MoreStructures/MoreStructures/MoreStructures/SuffixTrees/Builders/Ukkonen/MovingEnd.cs

#LineLine coverage
 1namespace MoreStructures.SuffixTrees.Builders.Ukkonen;
 2
 3/// <summary>
 4/// An object wrapping an integer value, using as a auto-updating end for all leaves of the tree beeing built by
 5/// <see cref="UkkonenSuffixTreeBuilder"/>. Makes Rule 1 Extension a constant-time operation.
 6/// </summary>
 7internal class MovingEnd
 8{
 9    /// <summary>
 10    /// The current value of the end.
 11    /// </summary>
 921912    public int Value { get; set; }
 13
 14    /// <summary>
 15    /// <inheritdoc cref="MovingEnd"/>
 16    /// </summary>
 17    /// <param name="value"><inheritdoc cref="Value"/></param>
 23618    public MovingEnd(int value)
 23619    {
 23620        Value = value;
 23621    }
 22
 23    /// <inheritdoc path="//*[not(self::summary)]"/>
 24    /// <summary>
 25    ///     <inheritdoc/>
 26    ///     <br/>
 27    ///     Shows the undelying <see cref="Value"/>.
 28    /// </summary>
 320729    public override string ToString() => Value.ToString();
 30}