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

Function TestNewDefaultClient

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

Source from the content-addressed store, hash-verified

11)
12
13func TestNewDefaultClient(t *testing.T) {
14 c := subscriptions.NewDefaultClient()
15
16 if c.Channel() == nil {
17 t.Errorf("Expected channel to be initialized")
18 }
19
20 if c.Subscriptions() == nil {
21 t.Errorf("Expected subscriptions map to be initialized")
22 }
23
24 if c.Id() == "" {
25 t.Errorf("Expected unique id to be set")
26 }
27}
28
29func TestId(t *testing.T) {
30 clients := []*subscriptions.DefaultClient{

Callers

nothing calls this directly

Calls 4

ChannelMethod · 0.95
SubscriptionsMethod · 0.95
IdMethod · 0.95
NewDefaultClientFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…