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

Function expectIssueQuery2

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

Source from the content-addressed store, hash-verified

160}
161
162func expectIssueQuery2(mock *mocks.Client) {
163 mock.On("Query", m.Anything, m.AnythingOfType("*github.issueQuery"), m.Anything).Return(nil).Run(
164 func(args m.Arguments) {
165 retVal := args.Get(1).(*issueQuery)
166 retVal.Repository.Issues.Nodes = []issueNode{
167 {
168 issue: issue{
169 authorEvent: authorEvent{
170 Id: 3,
171 Author: &actor{
172 Typename: "User",
173 User: userActor{
174 Name: &userName,
175 Email: userEmail,
176 },
177 },
178 },
179 Title: "title 3",
180 Number: 3,
181 Body: "body text 3",
182 Url: githubv4.URI{
183 URL: &url.URL{
184 Scheme: "https",
185 Host: "github.com",
186 Path: "marcus/to-himself/issues/3",
187 },
188 },
189 },
190 UserContentEdits: userContentEditConnection{},
191 TimelineItems: timelineItemsConnection{
192 Nodes: []timelineItem{
193 {
194 Typename: "IssueComment",
195 IssueComment: issueComment{
196 authorEvent: authorEvent{
197 Id: 301,
198 Author: &actor{
199 Typename: "User",
200 User: userActor{
201 Name: &userName,
202 Email: userEmail,
203 },
204 },
205 },
206 Body: "issue 3 comment 1",
207 Url: githubv4.URI{
208 URL: &url.URL{
209 Scheme: "https",
210 Host: "github.com",
211 Path: "marcus/to-himself/issues/3#issuecomment-1",
212 },
213 },
214 UserContentEdits: userContentEditConnection{},
215 },
216 },
217 {
218 Typename: "IssueComment",
219 IssueComment: issueComment{

Callers 1

setupExpectationsFunction · 0.85

Calls 2

RunMethod · 0.80
GetMethod · 0.80

Tested by

no test coverage detected