(t *testing.T, mock *mocks.Client)
| 76 | } |
| 77 | |
| 78 | func setupExpectations(t *testing.T, mock *mocks.Client) { |
| 79 | rateLimitingError(mock) |
| 80 | expectIssueQuery1(mock) |
| 81 | expectIssueQuery2(mock) |
| 82 | expectIssueQuery3(mock) |
| 83 | expectUserQuery(t, mock) |
| 84 | } |
| 85 | |
| 86 | func rateLimitingError(mock *mocks.Client) { |
| 87 | mock.On("Query", m.Anything, m.AnythingOfType("*github.issueQuery"), m.Anything).Return(errors.New("API rate limit exceeded")).Once() |
no test coverage detected