< Summary

Information
Class: Trailblazer.Pathing.VolumeMediumRulesState
Assembly: Trailblazer
File(s): /home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/VolumeRules/VolumeMediumRulesState.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 Crap Score Cyclomatic complexity Line coverage
IncrementRegistryVersion()100%11100%

File(s)

/home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/VolumeRules/VolumeMediumRulesState.cs

#LineLine coverage
 1using System.Threading;
 2
 3namespace Trailblazer.Pathing;
 4
 5/// <summary>
 6/// Stores host-provided raw-volume medium rules for one pathing context.
 7/// </summary>
 8internal sealed class VolumeMediumRulesState
 9{
 10    internal VolumeVoxelRule? GasVoxelRule;
 11
 12    internal VolumeVoxelRule? LiquidVoxelRule;
 13
 14    internal int RegistryVersion;
 15
 16    internal void IncrementRegistryVersion()
 17    {
 175218        Interlocked.Increment(ref RegistryVersion);
 175219    }
 20}

Methods/Properties

IncrementRegistryVersion()