(t *testing.T)
| 14 | ) |
| 15 | |
| 16 | func TestQueries(t *testing.T) { |
| 17 | repo := repository.CreateGoGitTestRepo(t, false) |
| 18 | |
| 19 | random_bugs.FillRepoWithSeed(repo, 10, 42) |
| 20 | |
| 21 | mrc := cache.NewMultiRepoCache() |
| 22 | _, events := mrc.RegisterDefaultRepository(repo) |
| 23 | for event := range events { |
| 24 | require.NoError(t, event.Err) |
| 25 | } |
| 26 | |
| 27 | handler := NewHandler(mrc, nil) |
| 28 | |
| 29 | c := client.New(handler) |
| 30 | |
| 31 | query := ` |
| 32 | query { |
| 33 | repository { |
| 34 | allBugs(first: 2) { |
| 35 | pageInfo { |
| 36 | endCursor |
| 37 | hasNextPage |
| 38 | startCursor |
| 39 | hasPreviousPage |
| 40 | } |
| 41 | nodes{ |
| 42 | author { |
| 43 | name |
| 44 | |
| 45 | avatarUrl |
| 46 | } |
| 47 | |
| 48 | createdAt |
| 49 | humanId |
| 50 | id |
| 51 | lastEdit |
| 52 | status |
| 53 | title |
| 54 | |
| 55 | actors(first: 10) { |
| 56 | pageInfo { |
| 57 | endCursor |
| 58 | hasNextPage |
| 59 | startCursor |
| 60 | hasPreviousPage |
| 61 | } |
| 62 | nodes { |
| 63 | id |
| 64 | humanId |
| 65 | name |
| 66 | displayName |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | participants(first: 10) { |
| 71 | pageInfo { |
| 72 | endCursor |
| 73 | hasNextPage |
nothing calls this directly
no test coverage detected