< Summary

Information
Class: Trailblazer.Navigation.Motor.MantleValidationSnapshot
Assembly: Trailblazer
File(s): /home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Navigation/Motor/Climbing/MantleValidationSnapshot.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
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 Crap Score Cyclomatic complexity Line coverage
.cctor()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Navigation/Motor/Climbing/MantleValidationSnapshot.cs

#LineLine coverage
 1namespace Trailblazer.Navigation.Motor;
 2
 3/// <summary>
 4/// Immutable validation result describing whether an active mantle may continue.
 5/// </summary>
 6public readonly struct MantleValidationSnapshot
 7{
 8    /// <summary>
 9    /// Reusable allow snapshot.
 10    /// </summary>
 111    public static readonly MantleValidationSnapshot Continue = new(true);
 12
 13    /// <summary>
 14    /// Reusable cancel snapshot.
 15    /// </summary>
 116    public static readonly MantleValidationSnapshot Cancel = new(false);
 17
 18    /// <summary>
 19    /// Initializes a new mantle validation snapshot.
 20    /// </summary>
 21    public MantleValidationSnapshot(bool canContinueMantle)
 22    {
 223        CanContinueMantle = canContinueMantle;
 224    }
 25
 26    /// <summary>
 27    /// Gets a value indicating whether the mantle action can be continued.
 28    /// </summary>
 29    public bool CanContinueMantle { get; }
 30}

Methods/Properties

.cctor()
.ctor(System.Boolean)