MCPcopy Create free account
hub / github.com/cli/cli / mockIsssueNumberGetWithAssignedActors

Function mockIsssueNumberGetWithAssignedActors

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

Source from the content-addressed store, hash-verified

1877}
1878
1879func mockIsssueNumberGetWithAssignedActors(_ *testing.T, reg *httpmock.Registry, number int) {
1880 reg.Register(
1881 httpmock.GraphQL(`query IssueByNumber\b`),
1882 httpmock.StringResponse(fmt.Sprintf(`
1883 { "data": { "repository": { "hasIssuesEnabled": true, "issue": {
1884 "id": "%[1]d",
1885 "number": %[1]d,
1886 "url": "https://github.com/OWNER/REPO/issue/%[1]d",
1887 "assignedActors": {
1888 "nodes": [
1889 {
1890 "id": "HUBOTID",
1891 "login": "hubot",
1892 "__typename": "Bot"
1893 }
1894 ],
1895 "totalCount": 1
1896 }
1897 } } } }`, number)),
1898 )
1899}
1900
1901func mockIssueProjectItemsGet(_ *testing.T, reg *httpmock.Registry) {
1902 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