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:
parent
84acc9e563
commit
0182570200
1 changed files with 2 additions and 1 deletions
|
|
@ -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++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue