mirror of
https://github.com/kopia/kopia.git
synced 2026-03-14 12:16:46 -04:00
This updates the terminology everywhere - blocks become blobs and `storage.Storage` becomes `blob.Storage`. Also introduced blob.ID which is a specialized string type, that's different from CABS block ID. Also renamed CLI subcommands from `kopia storage` to `kopia blob`. While at it introduced `block.ErrBlockNotFound` and `object.ErrObjectNotFound` that do not leak from lower layers.
16 lines
248 B
Go
16 lines
248 B
Go
package blobtesting
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
)
|
|
|
|
func TestMapStorage(t *testing.T) {
|
|
data := DataMap{}
|
|
r := NewMapStorage(data, nil, nil)
|
|
if r == nil {
|
|
t.Errorf("unexpected result: %v", r)
|
|
}
|
|
VerifyStorage(context.Background(), t, r)
|
|
}
|