MCPcopy
hub / github.com/perkeep/perkeep / newTestStorage

Function newTestStorage

pkg/blobserver/encrypt/encrypt_test.go:73–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71}
72
73func newTestStorage() *testStorage {
74 sto := &storage{
75 index: sorted.NewMemoryKeyValue(),
76 smallMeta: &metaBlobHeap{},
77 identity: testIdentity,
78 }
79 ts := &testStorage{
80 sto: sto,
81 blobs: new(test.Fetcher),
82 meta: new(test.Fetcher),
83 }
84 sto.blobs = ts.blobs
85 sto.meta = ts.meta
86 return ts
87}
88
89func TestStorage(t *testing.T) {
90 storagetest.TestOpt(t, storagetest.Opts{

Callers 4

TestStorageFunction · 0.70
TestEncryptFunction · 0.70
TestEncryptStressFunction · 0.70
TestLoadMetaFunction · 0.70

Calls 1

NewMemoryKeyValueFunction · 0.92

Tested by

no test coverage detected