MCPcopy Index your code
hub / github.com/github/github-mcp-server / expect

Function expect

pkg/github/helper_test.go:212–219  ·  view source on GitHub ↗

expect is a helper function to create a partial mock that expects various request behaviors, such as path, query parameters, and request body.

(t *testing.T, e expectations)

Source from the content-addressed store, hash-verified

210// expect is a helper function to create a partial mock that expects various
211// request behaviors, such as path, query parameters, and request body.
212func expect(t *testing.T, e expectations) *partialMock {
213 return &partialMock{
214 t: t,
215 expectedPath: e.path,
216 expectedQueryParams: e.queryParams,
217 expectedRequestBody: e.requestBody,
218 }
219}
220
221// expectPath is a helper function to create a partial mock that expects a
222// request with the given path, with the ability to chain a response handler.

Calls

no outgoing calls

Tested by

no test coverage detected