(a *API)
| 512 | } |
| 513 | |
| 514 | func 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 | |
| 525 | func testClient(t *testing.T, url string) *testingClient { |
| 526 | client := createClient(t, url) |
no outgoing calls
no test coverage detected
searching dependent graphs…