(mock *mocks.Client)
| 342 | } |
| 343 | |
| 344 | func expectIssueQuery3(mock *mocks.Client) { |
| 345 | mock.On("Query", m.Anything, m.AnythingOfType("*github.issueQuery"), m.Anything).Return(nil).Run( |
| 346 | func(args m.Arguments) { |
| 347 | retVal := args.Get(1).(*issueQuery) |
| 348 | retVal.Repository.Issues.Nodes = []issueNode{ |
| 349 | { |
| 350 | issue: issue{ |
| 351 | authorEvent: authorEvent{ |
| 352 | Author: nil, |
| 353 | }, |
| 354 | Title: "title 5", |
| 355 | Number: 5, |
| 356 | Body: "body text 5", |
| 357 | Url: githubv4.URI{ |
| 358 | URL: &url.URL{ |
| 359 | Scheme: "https", |
| 360 | Host: "github.com", |
| 361 | Path: "marcus/to-himself/issues/5", |
| 362 | }, |
| 363 | }, |
| 364 | }, |
| 365 | UserContentEdits: userContentEditConnection{}, |
| 366 | TimelineItems: timelineItemsConnection{}, |
| 367 | }, |
| 368 | } |
| 369 | retVal.Repository.Issues.PageInfo = pageInfo{} |
| 370 | }, |
| 371 | ).Once() |
| 372 | } |
| 373 | |
| 374 | func expectUserQuery(t *testing.T, mock *mocks.Client) { |
| 375 | mock.On("Query", m.Anything, m.AnythingOfType("*github.userQuery"), m.AnythingOfType("map[string]interface {}")).Return(nil).Run( |
no test coverage detected