Documentation
¶
Index ¶
- type GitHubClient
- func (_m *GitHubClient) EXPECT() *GitHubClient_Expecter
- func (_mock *GitHubClient) GetPullRequestCount(context1 context.Context, s string, s1 string) (int, error)
- func (_mock *GitHubClient) GetRepoStats(context1 context.Context, s string, s1 string) (github.RepoStats, error)
- func (_mock *GitHubClient) GetUserRepoNames(context1 context.Context, s string) ([]string, error)
- type GitHubClient_Expecter
- func (_e *GitHubClient_Expecter) GetPullRequestCount(context1 interface{}, s interface{}, s1 interface{}) *GitHubClient_GetPullRequestCount_Call
- func (_e *GitHubClient_Expecter) GetRepoStats(context1 interface{}, s interface{}, s1 interface{}) *GitHubClient_GetRepoStats_Call
- func (_e *GitHubClient_Expecter) GetUserRepoNames(context1 interface{}, s interface{}) *GitHubClient_GetUserRepoNames_Call
- type GitHubClient_GetPullRequestCount_Call
- func (_c *GitHubClient_GetPullRequestCount_Call) Return(n int, err error) *GitHubClient_GetPullRequestCount_Call
- func (_c *GitHubClient_GetPullRequestCount_Call) Run(run func(context1 context.Context, s string, s1 string)) *GitHubClient_GetPullRequestCount_Call
- func (_c *GitHubClient_GetPullRequestCount_Call) RunAndReturn(run func(context1 context.Context, s string, s1 string) (int, error)) *GitHubClient_GetPullRequestCount_Call
- type GitHubClient_GetRepoStats_Call
- func (_c *GitHubClient_GetRepoStats_Call) Return(repoStats github.RepoStats, err error) *GitHubClient_GetRepoStats_Call
- func (_c *GitHubClient_GetRepoStats_Call) Run(run func(context1 context.Context, s string, s1 string)) *GitHubClient_GetRepoStats_Call
- func (_c *GitHubClient_GetRepoStats_Call) RunAndReturn(...) *GitHubClient_GetRepoStats_Call
- type GitHubClient_GetUserRepoNames_Call
- func (_c *GitHubClient_GetUserRepoNames_Call) Return(strings []string, err error) *GitHubClient_GetUserRepoNames_Call
- func (_c *GitHubClient_GetUserRepoNames_Call) Run(run func(context1 context.Context, s string)) *GitHubClient_GetUserRepoNames_Call
- func (_c *GitHubClient_GetUserRepoNames_Call) RunAndReturn(run func(context1 context.Context, s 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 (_mock *GitHubClient) GetPullRequestCount(context1 context.Context, s string, s1 string) (int, error)
GetPullRequestCount provides a mock function for the type GitHubClient
func (*GitHubClient) GetRepoStats ¶
func (_mock *GitHubClient) GetRepoStats(context1 context.Context, s string, s1 string) (github.RepoStats, error)
GetRepoStats provides a mock function for the type GitHubClient
func (*GitHubClient) GetUserRepoNames ¶ added in v0.4.0
GetUserRepoNames provides a mock function for the type GitHubClient
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(context1 interface{}, s interface{}, s1 interface{}) *GitHubClient_GetPullRequestCount_Call
GetPullRequestCount is a helper method to define mock.On call
- context1 context.Context
- s string
- s1 string
func (*GitHubClient_Expecter) GetRepoStats ¶
func (_e *GitHubClient_Expecter) GetRepoStats(context1 interface{}, s interface{}, s1 interface{}) *GitHubClient_GetRepoStats_Call
GetRepoStats is a helper method to define mock.On call
- context1 context.Context
- s string
- s1 string
func (*GitHubClient_Expecter) GetUserRepoNames ¶ added in v0.4.0
func (_e *GitHubClient_Expecter) GetUserRepoNames(context1 interface{}, s interface{}) *GitHubClient_GetUserRepoNames_Call
GetUserRepoNames is a helper method to define mock.On call
- context1 context.Context
- s 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(n int, err error) *GitHubClient_GetPullRequestCount_Call
func (*GitHubClient_GetPullRequestCount_Call) Run ¶ added in v0.4.0
func (_c *GitHubClient_GetPullRequestCount_Call) Run(run func(context1 context.Context, s string, s1 string)) *GitHubClient_GetPullRequestCount_Call
func (*GitHubClient_GetPullRequestCount_Call) RunAndReturn ¶ added in v0.4.0
func (_c *GitHubClient_GetPullRequestCount_Call) RunAndReturn(run func(context1 context.Context, s string, s1 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(repoStats github.RepoStats, err error) *GitHubClient_GetRepoStats_Call
func (*GitHubClient_GetRepoStats_Call) Run ¶
func (_c *GitHubClient_GetRepoStats_Call) Run(run func(context1 context.Context, s string, s1 string)) *GitHubClient_GetRepoStats_Call
func (*GitHubClient_GetRepoStats_Call) RunAndReturn ¶
func (_c *GitHubClient_GetRepoStats_Call) RunAndReturn(run func(context1 context.Context, s string, s1 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(strings []string, err error) *GitHubClient_GetUserRepoNames_Call
func (*GitHubClient_GetUserRepoNames_Call) Run ¶ added in v0.4.0
func (_c *GitHubClient_GetUserRepoNames_Call) Run(run func(context1 context.Context, s string)) *GitHubClient_GetUserRepoNames_Call
func (*GitHubClient_GetUserRepoNames_Call) RunAndReturn ¶ added in v0.4.0
func (_c *GitHubClient_GetUserRepoNames_Call) RunAndReturn(run func(context1 context.Context, s string) ([]string, error)) *GitHubClient_GetUserRepoNames_Call