From 018257020072b839437e7371fdb39ec29b6f7a08 Mon Sep 17 00:00:00 2001 From: soul Date: Tue, 27 Oct 2026 18:50:45 +0100 Subject: [PATCH] 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 --- tests/Aetheria.Shared.Tests/OreGeographyTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Aetheria.Shared.Tests/OreGeographyTests.cs b/tests/Aetheria.Shared.Tests/OreGeographyTests.cs index de4c7fa7f..b8522f8ef 100644 --- a/tests/Aetheria.Shared.Tests/OreGeographyTests.cs +++ b/tests/Aetheria.Shared.Tests/OreGeographyTests.cs @@ -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++)