< Summary

Information
Class: Trailblazer.Pathing.ExternalGridEventSignature
Assembly: Trailblazer
File(s): /home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/GridBridge/ExternalGridEventSignature.cs
Line coverage
100%
Covered lines: 13
Uncovered lines: 0
Coverable lines: 13
Total lines: 46
Line coverage: 100%
Branch coverage
100%
Covered branches: 10
Total branches: 10
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
Equals(...)100%1010100%

File(s)

/home/runner/work/Trailblazer/Trailblazer/src/Trailblazer/Pathing/GridBridge/ExternalGridEventSignature.cs

#LineLine coverage
 1using FixedMathSharp;
 2using GridForge.Configuration;
 3using System;
 4
 5namespace Trailblazer.Pathing;
 6
 7internal readonly struct ExternalGridEventSignature : IEquatable<ExternalGridEventSignature>
 8{
 9    public ExternalGridEventSignature(
 10        ExternalGridEventKind eventKind,
 11        int gridSpawnToken,
 12        uint gridVersion,
 13        GridConfiguration configuration,
 14        Vector3d boundsMin,
 15        Vector3d boundsMax)
 16    {
 201917        EventKind = eventKind;
 201918        GridSpawnToken = gridSpawnToken;
 201919        GridVersion = gridVersion;
 201920        Configuration = configuration;
 201921        BoundsMin = boundsMin;
 201922        BoundsMax = boundsMax;
 201923    }
 24
 25    public ExternalGridEventKind EventKind { get; }
 26
 27    public int GridSpawnToken { get; }
 28
 29    public uint GridVersion { get; }
 30
 31    public GridConfiguration Configuration { get; }
 32
 33    public Vector3d BoundsMin { get; }
 34
 35    public Vector3d BoundsMax { get; }
 36
 37    public bool Equals(ExternalGridEventSignature other)
 38    {
 129039        return EventKind == other.EventKind
 129040            && GridSpawnToken == other.GridSpawnToken
 129041            && GridVersion == other.GridVersion
 129042            && Configuration.Equals(other.Configuration)
 129043            && BoundsMin == other.BoundsMin
 129044            && BoundsMax == other.BoundsMax;
 45    }
 46}