MCPcopy
hub / github.com/pocketbase/pocketbase / TestRemove

Function TestRemove

tools/store/store_test.go:97–108  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

95}
96
97func TestRemove(t *testing.T) {
98 s := store.New(map[string]bool{"test": true})
99
100 keys := []string{"test", "missing"}
101
102 for i, key := range keys {
103 s.Remove(key)
104 if s.Has(key) {
105 t.Errorf("(%d) Expected %q to be removed", i, key)
106 }
107 }
108}
109
110func TestHas(t *testing.T) {
111 s := store.New(map[string]int{"test1": 0, "test2": 1})

Callers

nothing calls this directly

Calls 3

NewFunction · 0.92
RemoveMethod · 0.45
HasMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…