MCPcopy Index your code
hub / github.com/pocketbase/pocketbase / TestSetAndGet

Function TestSetAndGet

tools/subscriptions/client_test.go:185–195  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

183}
184
185func TestSetAndGet(t *testing.T) {
186 c := subscriptions.NewDefaultClient()
187
188 c.Set("demo", 1)
189
190 result, _ := c.Get("demo").(int)
191
192 if result != 1 {
193 t.Errorf("Expected 1, got %v", result)
194 }
195}
196
197func TestDiscard(t *testing.T) {
198 c := subscriptions.NewDefaultClient()

Callers

nothing calls this directly

Calls 3

SetMethod · 0.95
GetMethod · 0.95
NewDefaultClientFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…