Content-Length: 284037 | pFad | http://github.com/github/github-mcp-server/commit/c174179d4970915b9d5135924b79d56ffb197b14
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38938dc commit c174179Copy full SHA for c174179
pkg/github/issues_test.go
@@ -289,9 +289,20 @@ func Test_SearchIssues(t *testing.T) {
289
{
290
name: "successful issues search with all parameters",
291
mockedClient: mock.NewMockedHTTPClient(
292
- mock.WithRequestMatch(
+ mock.WithRequestMatchHandler(
293
mock.GetSearchIssues,
294
- mockSearchResult,
+ expectQueryParams(
295
+ t,
296
+ map[string]string{
297
+ "q": "repo:owner/repo is:issue is:open",
298
+ "sort": "created",
299
+ "order": "desc",
300
+ "page": "1",
301
+ "per_page": "30",
302
+ },
303
+ ).andThen(
304
+ mockResponse(t, http.StatusOK, mockSearchResult),
305
+ ),
306
),
307
308
requestArgs: map[string]interface{}{
Fetched URL: http://github.com/github/github-mcp-server/commit/c174179d4970915b9d5135924b79d56ffb197b14
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments