< Summary

Information
Class: GridForge.GridVoxelSet
Assembly: GridForge
File(s): /home/runner/work/GridForge/GridForge/src/GridForge/Support/GridVoxelSet.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 31
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/Support/GridVoxelSet.cs

#LineLine coverage
 1using GridForge.Grids;
 2using SwiftCollections;
 3
 4namespace GridForge;
 5
 6/// <summary>
 7/// Used to group query results on a grid to voxel level
 8/// </summary>
 9public readonly struct GridVoxelSet
 10{
 11    /// <summary>
 12    /// The grid containing the voxels from the resulting query
 13    /// </summary>
 14    public readonly VoxelGrid Grid;
 15
 16    /// <summary>
 17    /// A list of voxels that match the provided query
 18    /// </summary>
 19    public readonly SwiftList<Voxel> Voxels;
 20
 21    /// <summary>
 22    /// Initializes a new grouped grid query result.
 23    /// </summary>
 24    /// <param name="grid">The grid containing the matching voxels.</param>
 25    /// <param name="voxels">The matching voxels for the grid.</param>
 26    public GridVoxelSet(VoxelGrid grid, SwiftList<Voxel> voxels)
 27    {
 16528        Grid = grid;
 16529        Voxels = voxels;
 16530    }
 31}