MCPcopy Index your code
hub / github.com/moby/moby / assertRequestWithQuery

Function assertRequestWithQuery

client/client_mock_test.go:36–45  ·  view source on GitHub ↗
(req *http.Request, expMethod string, expectedPath string, expectedQuery string)

Source from the content-addressed store, hash-verified

34}
35
36func assertRequestWithQuery(req *http.Request, expMethod string, expectedPath string, expectedQuery string) error {
37 if err := assertRequest(req, expMethod, expectedPath); err != nil {
38 return err
39 }
40 q := req.URL.Query().Encode()
41 if q != expectedQuery {
42 return fmt.Errorf("expected query '%s', got '%s'", expectedQuery, q)
43 }
44 return nil
45}
46
47// ensureBody makes sure the response has a Body (using [http.NoBody] if
48// none is present), and that the request is set on the response, then returns

Callers 1

TestDiskUsageWithOptionsFunction · 0.85

Calls 3

assertRequestFunction · 0.85
ErrorfMethod · 0.80
EncodeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…