< Summary

Information
Class: SwiftCollections.SwiftIntAscendingComparer
Assembly: SwiftCollections
File(s): /home/runner/work/SwiftCollections/SwiftCollections/src/SwiftCollections/Utility/SwiftIntAscendingComparer.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
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 Crap Score Cyclomatic complexity Line coverage
Compare(...)100%11100%

File(s)

/home/runner/work/SwiftCollections/SwiftCollections/src/SwiftCollections/Utility/SwiftIntAscendingComparer.cs

#LineLine coverage
 1//=======================================================================
 2// SwiftIntAscendingComparer.cs
 3//=======================================================================
 4// MIT License, Copyright (c) 2024-present David Oravsky (mrdav30)
 5// See LICENSE file in the project root for full license information.
 6//=======================================================================
 7
 8using System.Collections.Generic;
 9using System.Runtime.CompilerServices;
 10
 11namespace SwiftCollections;
 12
 13internal readonly struct SwiftIntAscendingComparer : IComparer<int>
 14{
 15    [MethodImpl(MethodImplOptions.AggressiveInlining)]
 16    public int Compare(int x, int y)
 17    {
 374018        return x.CompareTo(y);
 19    }
 20}