MCPcopy Index your code
hub / github.com/git-bug/git-bug / expectIssueQuery1

Function expectIssueQuery1

bridge/github/import_integration_test.go:96–160  ·  view source on GitHub ↗
(mock *mocks.Client)

Source from the content-addressed store, hash-verified

94}
95
96func expectIssueQuery1(mock *mocks.Client) {
97 mock.On("Query", m.Anything, m.AnythingOfType("*github.issueQuery"), m.Anything).Return(nil).Run(
98 func(args m.Arguments) {
99 retVal := args.Get(1).(*issueQuery)
100 retVal.Repository.Issues.Nodes = []issueNode{
101 {
102 issue: issue{
103 authorEvent: authorEvent{
104 Id: 1,
105 Author: &actor{
106 Typename: "User",
107 User: userActor{
108 Name: &userName,
109 Email: userEmail,
110 },
111 },
112 },
113 Title: "title 1",
114 Number: 1,
115 Body: "body text 1",
116 Url: githubv4.URI{
117 URL: &url.URL{
118 Scheme: "https",
119 Host: "github.com",
120 Path: "marcus/to-himself/issues/1",
121 },
122 },
123 },
124 UserContentEdits: userContentEditConnection{},
125 TimelineItems: timelineItemsConnection{},
126 },
127 {
128 issue: issue{
129 authorEvent: authorEvent{
130 Id: 2,
131 Author: &actor{
132 Typename: "User",
133 User: userActor{
134 Name: &userName,
135 Email: userEmail,
136 },
137 },
138 },
139 Title: "title 2",
140 Number: 2,
141 Body: "body text 2",
142 Url: githubv4.URI{
143 URL: &url.URL{
144 Scheme: "https",
145 Host: "github.com",
146 Path: "marcus/to-himself/issues/2",
147 },
148 },
149 },
150 UserContentEdits: userContentEditConnection{},
151 TimelineItems: timelineItemsConnection{},
152 },
153 }

Callers 1

setupExpectationsFunction · 0.85

Calls 2

RunMethod · 0.80
GetMethod · 0.80

Tested by

no test coverage detected