diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2017-09-29 07:57:09 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2017-10-03 15:01:38 +0200 |
commit | c04bbf9c82f216891ba44b8b5b621b8020963086 (patch) | |
tree | a2e0809ea5e4a0cf2dfd921b6b6c79e48a9d5de7 /backup/backup_test.go | |
parent | 55053d116a79d681dc10d0e905371533e1a43299 (diff) | |
download | petrific-c04bbf9c82f216891ba44b8b5b621b8020963086.tar.gz petrific-c04bbf9c82f216891ba44b8b5b621b8020963086.tar.bz2 petrific-c04bbf9c82f216891ba44b8b5b621b8020963086.zip |
Restructure package storage
Diffstat (limited to 'backup/backup_test.go')
-rw-r--r-- | backup/backup_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backup/backup_test.go b/backup/backup_test.go index da14117..a7f7ff9 100644 --- a/backup/backup_test.go +++ b/backup/backup_test.go @@ -6,6 +6,7 @@ import ( "code.laria.me/petrific/fs" "code.laria.me/petrific/objects" "code.laria.me/petrific/storage" + "code.laria.me/petrific/storage/memory" "testing" ) @@ -27,7 +28,7 @@ func wantObject( } func TestWriteLargeFile(t *testing.T) { - s := storage.NewMemoryStorage() + s := memory.NewMemoryStorage() id, err := WriteFile(s, bytes.NewReader(content_largefile)) if err != nil { @@ -61,7 +62,7 @@ func mkfile(t *testing.T, d fs.Dir, name string, exec bool, content []byte) { } func TestWriteDir(t *testing.T) { - s := storage.NewMemoryStorage() + s := memory.NewMemoryStorage() root := fs.NewMemoryFSRoot("root") |