DistancesAreOfTheFinalGraph builds its own galaxies so the pruning's distance recompute is under its coverage (cut one-exit)

Stryker's per-test coverage credited the shared galaxy cache's first builder
alone with Galaxy.OneExitPerRegion's CalculateDistanceMatrix call, so deleting
the call survived. Fixture fix, no rule change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-10-27 18:50:45 +01:00
commit 0182570200

View file

@ -551,7 +551,8 @@ public sealed class OreGeographyTests : IDisposable
[Fact]
public void DistancesAreOfTheFinalGraph()
{
foreach (var galaxy in SectorGalaxies())
// Built here, not shared: a galaxy another test built first would put the generator's lines under that test's coverage alone.
foreach (var galaxy in Enumerable.Range(1, (int) OneExitSeeds).Select(seed => TryBuild(Shared, false, (uint) seed)).Where(galaxy => galaxy != null))
{
var adjacency = AdjacencyOf(galaxy);
for (var zone = 0; zone < adjacency.Length; zone++)