MCPcopy Create free account
hub / github.com/peterbourgon/diskv / TestKeysPrefixNested

Function TestKeysPrefixNested

keys_test.go:92–106  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

90}
91
92func TestKeysPrefixNested(t *testing.T) {
93 d := New(Options{
94 BasePath: "test-data",
95 Transform: blockTransform(2),
96 })
97 defer d.EraseAll()
98
99 for k, v := range keysTestData {
100 d.Write(k, []byte(v))
101 }
102
103 for _, prefix := range prefixes {
104 checkKeys(t, d.KeysPrefix(prefix, nil), filterPrefix(keysTestData, prefix))
105 }
106}
107
108func TestKeysCancel(t *testing.T) {
109 d := New(Options{

Callers

nothing calls this directly

Calls 7

NewFunction · 0.85
checkKeysFunction · 0.85
filterPrefixFunction · 0.85
EraseAllMethod · 0.80
KeysPrefixMethod · 0.80
blockTransformFunction · 0.70
WriteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…