Remove superseded history attribution paths

This commit is contained in:
2026-10-26 18:11:04 +00:00
parent 6a1447c327
commit 3ffaef7ede
18 changed files with 146 additions and 534 deletions

View File

@@ -124,7 +124,14 @@ func TestMetadataFinalizationRegistersResolutionInventoryAndRoots(t *testing.T)
var metadata Metadata
snapshots := []resolutionSnapshot{parentSnapshot, snapshot}
finalizeMetadataPathsWithResolution(&metadata, final, nil, snapshots, before, before)
builder := newHistoryBuilder()
builder.setScratch(before)
builder.observeDocument(before, historyPhaseBaseline)
builder.observeDocument(final, historyPhasePostCLI)
builder.prefixReady = true
builder.observeResolutionEvidence(snapshots)
metadata.historyBuilder = builder
freezeMetadataHistory(&metadata, final)
if got := metadata.HistoricalPaths(); len(got) != 3 || got[0].String() != "" || got[1].String() != "/shape" || got[2].String() != "/shape/0" {
t.Fatalf("historical paths = %#v", got)
}