MCPcopy Index your code
hub / github.com/gotify/server / countClients

Function countClients

api/stream/stream_test.go:514–523  ·  view source on GitHub ↗
(a *API)

Source from the content-addressed store, hash-verified

512}
513
514func countClients(a *API) int {
515 a.lock.RLock()
516 defer a.lock.RUnlock()
517
518 var i int
519 for _, clients := range a.clients {
520 i += len(clients)
521 }
522 return i
523}
524
525func testClient(t *testing.T, url string) *testingClient {
526 client := createClient(t, url)

Callers 1

waitForConnectedClientsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…