< 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: 37
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
 1//=======================================================================
 2// MantleValidationSnapshot.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
 8namespace Trailblazer.Navigation.Motor;
 9
 10/// <summary>
 11/// Immutable validation result describing whether an active mantle may continue.
 12/// </summary>
 13public readonly struct MantleValidationSnapshot
 14{
 15    /// <summary>
 16    /// Reusable allow snapshot.
 17    /// </summary>
 118    public static readonly MantleValidationSnapshot Continue = new(true);
 19
 20    /// <summary>
 21    /// Reusable cancel snapshot.
 22    /// </summary>
 123    public static readonly MantleValidationSnapshot Cancel = new(false);
 24
 25    /// <summary>
 26    /// Initializes a new mantle validation snapshot.
 27    /// </summary>
 28    public MantleValidationSnapshot(bool canContinueMantle)
 29    {
 230        CanContinueMantle = canContinueMantle;
 231    }
 32
 33    /// <summary>
 34    /// Gets a value indicating whether the mantle action can be continued.
 35    /// </summary>
 36    public bool CanContinueMantle { get; }
 37}

Methods/Properties

.cctor()
.ctor(System.Boolean)