< Summary

Information
Class: GridForge.Grids.OccupantEntry
Assembly: GridForge
File(s): /home/runner/work/GridForge/GridForge/src/GridForge/Grids/Nodes/OccupantEntry.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 25
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
.ctor(...)100%11100%

File(s)

/home/runner/work/GridForge/GridForge/src/GridForge/Grids/Nodes/OccupantEntry.cs

#LineLine coverage
 1//=======================================================================
 2// OccupantEntry.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 GridForge.Spatial;
 9
 10namespace GridForge.Grids;
 11
 12/// <summary>
 13/// Stores one occupant registration and the generation that owns its bucket slot.
 14/// </summary>
 15internal readonly struct OccupantEntry
 16{
 17    public readonly IVoxelOccupant Occupant;
 18    public readonly long Generation;
 19
 20    public OccupantEntry(IVoxelOccupant occupant, long generation)
 21    {
 77222        Occupant = occupant;
 77223        Generation = generation;
 77224    }
 25}