MCPcopy
hub / github.com/gotify/server / createClient

Function createClient

api/stream/stream_test.go:546–553  ·  view source on GitHub ↗
(t *testing.T, url string)

Source from the content-addressed store, hash-verified

544}
545
546func createClient(t *testing.T, url string) *testingClient {
547 ws, _, err := websocket.DefaultDialer.Dial(url, nil)
548 assert.Nil(t, err)
549
550 readMessages := make(chan model.MessageExternal)
551
552 return &testingClient{conn: ws, readMessage: readMessages, t: t}
553}
554
555type testingClient struct {
556 conn *websocket.Conn

Callers 2

TestPingFunction · 0.70
testClientFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…