mirror of
https://github.com/restic/restic.git
synced 2026-10-12 21:17:12 +00:00
add MemBackend and MockBackend
This commit is contained in:
1 parent
da71da23d9
commit
9cb4e14327
3 files changed
+209
No files matched your search
@@ -96,6 +96,11 @@ func testBackend(b backend.Backend, t *testing.T) {
|
||||
err = b.Remove(tpe, test.id)
|
||||
OK(t, err)
|
||||
|
||||
// test that the blob is gone
|
||||
ok, err := b.Test(tpe, test.id)
|
||||
OK(t, err)
|
||||
Assert(t, ok == false, "removed blob still present")
|
||||
|
||||
// create blob
|
||||
blob, err = b.Create()
|
||||
OK(t, err)
|
||||
|
||||
Reference in new issue
Block a user