MCPcopy Index your code
hub / github.com/cli/cli / mockIssueProjectItemsGet

Function mockIssueProjectItemsGet

pkg/cmd/issue/edit/edit_test.go:1323–1335  ·  view source on GitHub ↗
(_ *testing.T, reg *httpmock.Registry)

Source from the content-addressed store, hash-verified

1321}
1322
1323func mockIssueProjectItemsGet(_ *testing.T, reg *httpmock.Registry) {
1324 reg.Register(
1325 httpmock.GraphQL(`query IssueProjectItems\b`),
1326 httpmock.StringResponse(`
1327 { "data": { "repository": { "issue": {
1328 "projectItems": {
1329 "nodes": [
1330 { "id": "ITEMID", "project": { "title": "RoadmapV2" } }
1331 ]
1332 }
1333 } } } }`),
1334 )
1335}
1336
1337func mockRepoMetadata(_ *testing.T, reg *httpmock.Registry) {
1338 reg.Register(

Callers 1

Test_editRunFunction · 0.85

Calls 3

GraphQLFunction · 0.92
StringResponseFunction · 0.92
RegisterMethod · 0.45

Tested by

no test coverage detected