forked from TrueCloudLab/restic
add MemBackend and MockBackend
This commit is contained in:
parent
da71da23d9
commit
9cb4e14327
3 changed files with 209 additions and 0 deletions
12
backend/mem_backend_test.go
Normal file
12
backend/mem_backend_test.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package backend_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/restic/restic/backend"
|
||||
)
|
||||
|
||||
func TestMemoryBackend(t *testing.T) {
|
||||
be := backend.NewMemoryBackend()
|
||||
testBackend(be, t)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue