Complete safety and transfer remediation verification

This commit is contained in:
2026-12-01 20:47:59 +00:00
parent f59a53e31b
commit 75eddf8adc
27 changed files with 309 additions and 328 deletions

View File

@@ -110,8 +110,10 @@ func TestRestorePlanExistingAudioRequiresVerifiedReplacement(t *testing.T) {
if err != nil {
t.Fatalf("buildRestorePlan() error = %v", err)
}
if len(store.Downloads) != 0 {
t.Fatalf("downloads = %d, want no remote checksum download for audio", len(store.Downloads))
for _, read := range store.Reads {
if read.Key == current.SessionPrefix+"audio/alice.flac" {
t.Fatal("audio unexpectedly read during planning")
}
}
actionByRel := map[string]RestoreAction{}
for _, action := range plan.Actions {