Remove superseded history attribution paths
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user