MCPcopy
hub / github.com/kopia/kopia / TestObjectLockingStorage

Function TestObjectLockingStorage

internal/blobtesting/object_locking_map_test.go:11–21  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestObjectLockingStorage(t *testing.T) {
12 r := NewVersionedMapStorage(nil)
13 if r == nil {
14 t.Errorf("unexpected result: %v", r)
15 }
16
17 VerifyStorage(testlogging.Context(t), t, r, blob.PutOptions{
18 RetentionMode: blob.Governance,
19 RetentionPeriod: 24 * time.Hour,
20 })
21}

Callers

nothing calls this directly

Calls 4

ContextFunction · 0.92
NewVersionedMapStorageFunction · 0.85
VerifyStorageFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected