MCPcopy
hub / github.com/docker/docker-agent / GetRequests

Method GetRequests

pkg/telemetry/telemetry_test.go:71–75  ·  view source on GitHub ↗

GetRequests returns all captured requests

()

Source from the content-addressed store, hash-verified

69
70// GetRequests returns all captured requests
71func (m *MockHTTPClient) GetRequests() []*http.Request {
72 m.mu.Lock()
73 defer m.mu.Unlock()
74 return append([]*http.Request{}, m.requests...)
75}
76
77// GetBodies returns all captured request bodies
78func (m *MockHTTPClient) GetBodies() [][]byte {

Callers 4

TestSessionTrackingFunction · 0.95
TestCommandTrackingFunction · 0.95
TestAllEventTypesFunction · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected