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

Function expectIssueQuery3

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

Source from the content-addressed store, hash-verified

342}
343
344func 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
374func 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(

Callers 1

setupExpectationsFunction · 0.85

Calls 2

RunMethod · 0.80
GetMethod · 0.80

Tested by

no test coverage detected