MCPcopy Index your code
hub / github.com/docker/docker-agent / GetRequestCount

Method GetRequestCount

pkg/telemetry/telemetry_test.go:85–89  ·  view source on GitHub ↗

GetRequestCount returns the number of HTTP requests made

()

Source from the content-addressed store, hash-verified

83
84// GetRequestCount returns the number of HTTP requests made
85func (m *MockHTTPClient) GetRequestCount() int {
86 m.mu.Lock()
87 defer m.mu.Unlock()
88 return len(m.requests)
89}
90
91func TestNewClient(t *testing.T) {
92 t.Parallel()

Callers 6

TestSessionTrackingFunction · 0.95
TestCommandTrackingFunction · 0.95
TestAllEventTypesFunction · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected