MCPcopy Create free account
hub / github.com/ProspectOne/perfops-cli / newTestPerfopsClient

Function newTestPerfopsClient

cmd/root_test.go:217–220  ·  view source on GitHub ↗
(tr roundTripper)

Source from the content-addressed store, hash-verified

215}
216
217func newTestPerfopsClient(tr roundTripper) (*perfops.Client, error) {
218 c := &http.Client{Transport: tr}
219 return perfops.NewClient(perfops.WithHTTPClient(c))
220}
221
222type recordingTransport struct {
223 req *http.Request

Callers 11

TestGetCountriesListFunction · 0.85
TestGetCitiesListFunction · 0.85
TestRunListCmdFunction · 0.85
TestRunLatencyFunction · 0.85
TestRunMTRFunction · 0.85
TestRunDNSPerfFunction · 0.85
TestRunDNSResolveFunction · 0.85
TestRunCreditsFunction · 0.85
TestRunCurlResolveFunction · 0.85
TestRunTracerouteFunction · 0.85
TestRunPingFunction · 0.85

Calls 2

NewClientFunction · 0.92
WithHTTPClientFunction · 0.92

Tested by

no test coverage detected