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

Function TestHasSubscription

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

Source from the content-addressed store, hash-verified

169}
170
171func TestHasSubscription(t *testing.T) {
172 c := subscriptions.NewDefaultClient()
173
174 if c.HasSubscription("missing") {
175 t.Error("Expected false, got true")
176 }
177
178 c.Subscribe("sub")
179
180 if !c.HasSubscription("sub") {
181 t.Error("Expected true, got false")
182 }
183}
184
185func TestSetAndGet(t *testing.T) {
186 c := subscriptions.NewDefaultClient()

Callers

nothing calls this directly

Calls 4

HasSubscriptionMethod · 0.95
SubscribeMethod · 0.95
NewDefaultClientFunction · 0.92
ErrorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…