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

Function expectPath

pkg/github/helper_test.go:223–228  ·  view source on GitHub ↗

expectPath is a helper function to create a partial mock that expects a request with the given path, with the ability to chain a response handler.

(t *testing.T, expectedPath string)

Source from the content-addressed store, hash-verified

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.
223func expectPath(t *testing.T, expectedPath string) *partialMock {
224 return &partialMock{
225 t: t,
226 expectedPath: expectedPath,
227 }
228}
229
230// expectQueryParams is a helper function to create a partial mock that expects a
231// request with the given query parameters, with the ability to chain a response handler.

Callers 3

TestGetPullRequestDiffFunction · 0.85
Test_ListTagsFunction · 0.85
Test_GetTagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected