mirror of
https://github.com/restic/restic.git
synced 2026-11-20 12:36:55 +00:00
restore: add deletions to progress output
This commit is contained in:
1 parent
f4b15fdd96
commit
aa8e18cf32
8 files changed
+24
-3
No files matched your search
@@ -181,10 +181,12 @@ func TestProgressTypes(t *testing.T) {
|
||||
progress.AddFile(0)
|
||||
progress.AddProgress("dir", ActionDirRestored, fileSize, fileSize)
|
||||
progress.AddProgress("new", ActionFileRestored, 0, 0)
|
||||
progress.ReportDeletedFile("del")
|
||||
return true
|
||||
})
|
||||
test.Equals(t, itemTrace{
|
||||
itemTraceEntry{ActionDirRestored, "dir", fileSize},
|
||||
itemTraceEntry{ActionFileRestored, "new", 0},
|
||||
itemTraceEntry{ActionDeleted, "del", 0},
|
||||
}, items)
|
||||
}
|
||||
Reference in new issue
Block a user