< Summary

Information
Class: MoreStructures.Lists.Sorting.QuickSort.IdentityShuffleStrategy
Assembly: MoreStructures
File(s): /home/runner/work/MoreStructures/MoreStructures/MoreStructures/Lists/Sorting/QuickSort/IdentityShuffleStrategy.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 20
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
Shuffle(...)100%1100%

File(s)

/home/runner/work/MoreStructures/MoreStructures/MoreStructures/Lists/Sorting/QuickSort/IdentityShuffleStrategy.cs

#LineLine coverage
 1namespace MoreStructures.Lists.Sorting.QuickSort;
 2
 3/// <summary>
 4/// A <see cref="IShuffleStrategy"/> which does nothing to its input, and returns it as it is.
 5/// </summary>
 6/// <remarks>
 7/// Useful when used in a <see cref="IThreeWayPartitionStrategy"/> of a <see cref="RecursiveQuickSort"/> which should
 8/// act deterministically.
 9/// </remarks>
 10public class IdentityShuffleStrategy : IShuffleStrategy
 11{
 12    /// <inheritdoc/>
 13    /// <remarks>
 14    /// Does nothing to the <paramref name="list"/>: it returns it as it is.
 15    /// </remarks>
 16    public void Shuffle<T>(IList<T> list, int start, int end)
 18817    {
 18        // Does nothing
 18819    }
 20}