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

Function setupExpectations

bridge/github/import_integration_test.go:78–84  ·  view source on GitHub ↗
(t *testing.T, mock *mocks.Client)

Source from the content-addressed store, hash-verified

76}
77
78func 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
86func rateLimitingError(mock *mocks.Client) {
87 mock.On("Query", m.Anything, m.AnythingOfType("*github.issueQuery"), m.Anything).Return(errors.New("API rate limit exceeded")).Once()

Callers 1

Calls 5

rateLimitingErrorFunction · 0.85
expectIssueQuery1Function · 0.85
expectIssueQuery2Function · 0.85
expectIssueQuery3Function · 0.85
expectUserQueryFunction · 0.85

Tested by

no test coverage detected