Documentation
¶
Index ¶
- type GitHubClient
- func (_m *GitHubClient) EXPECT() *GitHubClient_Expecter
- func (_m *GitHubClient) GetPullRequestCount(_a0 context.Context, _a1 string, _a2 string) (int, error)
- func (_m *GitHubClient) GetRepoStats(_a0 context.Context, _a1 string, _a2 string) (github.RepoStats, error)
- func (_m *GitHubClient) GetUserRepoNames(_a0 context.Context, _a1 string) ([]string, error)
- type GitHubClient_Expecter
- func (_e *GitHubClient_Expecter) GetPullRequestCount(_a0 interface{}, _a1 interface{}, _a2 interface{}) *GitHubClient_GetPullRequestCount_Call
- func (_e *GitHubClient_Expecter) GetRepoStats(_a0 interface{}, _a1 interface{}, _a2 interface{}) *GitHubClient_GetRepoStats_Call
- func (_e *GitHubClient_Expecter) GetUserRepoNames(_a0 interface{}, _a1 interface{}) *GitHubClient_GetUserRepoNames_Call
- type GitHubClient_GetPullRequestCount_Call
- func (_c *GitHubClient_GetPullRequestCount_Call) Return(_a0 int, _a1 error) *GitHubClient_GetPullRequestCount_Call
- func (_c *GitHubClient_GetPullRequestCount_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *GitHubClient_GetPullRequestCount_Call
- func (_c *GitHubClient_GetPullRequestCount_Call) RunAndReturn(run func(context.Context, string, string) (int, error)) *GitHubClient_GetPullRequestCount_Call
- type GitHubClient_GetRepoStats_Call
- func (_c *GitHubClient_GetRepoStats_Call) Return(_a0 github.RepoStats, _a1 error) *GitHubClient_GetRepoStats_Call
- func (_c *GitHubClient_GetRepoStats_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *GitHubClient_GetRepoStats_Call
- func (_c *GitHubClient_GetRepoStats_Call) RunAndReturn(run func(context.Context, string, string) (github.RepoStats, error)) *GitHubClient_GetRepoStats_Call
- type GitHubClient_GetUserRepoNames_Call
- func (_c *GitHubClient_GetUserRepoNames_Call) Return(_a0 []string, _a1 error) *GitHubClient_GetUserRepoNames_Call
- func (_c *GitHubClient_GetUserRepoNames_Call) Run(run func(_a0 context.Context, _a1 string)) *GitHubClient_GetUserRepoNames_Call
- func (_c *GitHubClient_GetUserRepoNames_Call) RunAndReturn(run func(context.Context, string) ([]string, error)) *GitHubClient_GetUserRepoNames_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubClient ¶
GitHubClient is an autogenerated mock type for the GitHubClient type
func NewGitHubClient ¶
func NewGitHubClient(t interface {
mock.TestingT
Cleanup(func())
}) *GitHubClient
NewGitHubClient creates a new instance of GitHubClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*GitHubClient) EXPECT ¶
func (_m *GitHubClient) EXPECT() *GitHubClient_Expecter
func (*GitHubClient) GetPullRequestCount ¶ added in v0.4.0
func (_m *GitHubClient) GetPullRequestCount(_a0 context.Context, _a1 string, _a2 string) (int, error)
GetPullRequestCount provides a mock function with given fields: _a0, _a1, _a2
func (*GitHubClient) GetRepoStats ¶
func (_m *GitHubClient) GetRepoStats(_a0 context.Context, _a1 string, _a2 string) (github.RepoStats, error)
GetRepoStats provides a mock function with given fields: _a0, _a1, _a2
func (*GitHubClient) GetUserRepoNames ¶ added in v0.4.0
GetUserRepoNames provides a mock function with given fields: _a0, _a1
type GitHubClient_Expecter ¶
type GitHubClient_Expecter struct {
// contains filtered or unexported fields
}
func (*GitHubClient_Expecter) GetPullRequestCount ¶ added in v0.4.0
func (_e *GitHubClient_Expecter) GetPullRequestCount(_a0 interface{}, _a1 interface{}, _a2 interface{}) *GitHubClient_GetPullRequestCount_Call
GetPullRequestCount is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 string
func (*GitHubClient_Expecter) GetRepoStats ¶
func (_e *GitHubClient_Expecter) GetRepoStats(_a0 interface{}, _a1 interface{}, _a2 interface{}) *GitHubClient_GetRepoStats_Call
GetRepoStats is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 string
func (*GitHubClient_Expecter) GetUserRepoNames ¶ added in v0.4.0
func (_e *GitHubClient_Expecter) GetUserRepoNames(_a0 interface{}, _a1 interface{}) *GitHubClient_GetUserRepoNames_Call
GetUserRepoNames is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
type GitHubClient_GetPullRequestCount_Call ¶ added in v0.4.0
GitHubClient_GetPullRequestCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPullRequestCount'
func (*GitHubClient_GetPullRequestCount_Call) Return ¶ added in v0.4.0
func (_c *GitHubClient_GetPullRequestCount_Call) Return(_a0 int, _a1 error) *GitHubClient_GetPullRequestCount_Call
func (*GitHubClient_GetPullRequestCount_Call) Run ¶ added in v0.4.0
func (_c *GitHubClient_GetPullRequestCount_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *GitHubClient_GetPullRequestCount_Call
func (*GitHubClient_GetPullRequestCount_Call) RunAndReturn ¶ added in v0.4.0
func (_c *GitHubClient_GetPullRequestCount_Call) RunAndReturn(run func(context.Context, string, string) (int, error)) *GitHubClient_GetPullRequestCount_Call
type GitHubClient_GetRepoStats_Call ¶
GitHubClient_GetRepoStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepoStats'
func (*GitHubClient_GetRepoStats_Call) Return ¶
func (_c *GitHubClient_GetRepoStats_Call) Return(_a0 github.RepoStats, _a1 error) *GitHubClient_GetRepoStats_Call
func (*GitHubClient_GetRepoStats_Call) Run ¶
func (_c *GitHubClient_GetRepoStats_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *GitHubClient_GetRepoStats_Call
func (*GitHubClient_GetRepoStats_Call) RunAndReturn ¶
func (_c *GitHubClient_GetRepoStats_Call) RunAndReturn(run func(context.Context, string, string) (github.RepoStats, error)) *GitHubClient_GetRepoStats_Call
type GitHubClient_GetUserRepoNames_Call ¶ added in v0.4.0
GitHubClient_GetUserRepoNames_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserRepoNames'
func (*GitHubClient_GetUserRepoNames_Call) Return ¶ added in v0.4.0
func (_c *GitHubClient_GetUserRepoNames_Call) Return(_a0 []string, _a1 error) *GitHubClient_GetUserRepoNames_Call
func (*GitHubClient_GetUserRepoNames_Call) Run ¶ added in v0.4.0
func (_c *GitHubClient_GetUserRepoNames_Call) Run(run func(_a0 context.Context, _a1 string)) *GitHubClient_GetUserRepoNames_Call
func (*GitHubClient_GetUserRepoNames_Call) RunAndReturn ¶ added in v0.4.0
func (_c *GitHubClient_GetUserRepoNames_Call) RunAndReturn(run func(context.Context, string) ([]string, error)) *GitHubClient_GetUserRepoNames_Call