MCPcopy
hub / github.com/github/github-mcp-server / expectQueryParams

Function expectQueryParams

pkg/github/helper_test.go:232–237  ·  view source on GitHub ↗

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

(t *testing.T, expectedQueryParams map[string]string)

Source from the content-addressed store, hash-verified

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.
232func expectQueryParams(t *testing.T, expectedQueryParams map[string]string) *partialMock {
233 return &partialMock{
234 t: t,
235 expectedQueryParams: expectedQueryParams,
236 }
237}
238
239// expectRequestBody is a helper function to create a partial mock that expects a
240// request with the given body, with the ability to chain a response handler.

Callers 15

Test_ListPullRequestsFunction · 0.85
Test_SearchPullRequestsFunction · 0.85
Test_GetPullRequestFilesFunction · 0.85
Test_ListGistsFunction · 0.85
Test_SearchIssuesFunction · 0.85
Test_GetIssueCommentsFunction · 0.85
Test_GetSubIssuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected