Documentation ¶
Index ¶
- type GHOAuthClient
- func (_m *GHOAuthClient) EXPECT() *GHOAuthClient_Expecter
- func (_m *GHOAuthClient) GetUser(ctx context.Context) (*github.User, *github.Response, error)
- func (_m *GHOAuthClient) ListOrganizations(ctx context.Context) ([]*github.Organization, *github.Response, error)
- func (_m *GHOAuthClient) ListOwnerRepos(ctx context.Context, owner string) ([]*github.Repository, error)
- type GHOAuthClient_Expecter
- func (_e *GHOAuthClient_Expecter) GetUser(ctx interface{}) *GHOAuthClient_GetUser_Call
- func (_e *GHOAuthClient_Expecter) ListOrganizations(ctx interface{}) *GHOAuthClient_ListOrganizations_Call
- func (_e *GHOAuthClient_Expecter) ListOwnerRepos(ctx interface{}, owner interface{}) *GHOAuthClient_ListOwnerRepos_Call
- type GHOAuthClient_GetUser_Call
- func (_c *GHOAuthClient_GetUser_Call) Return(_a0 *github.User, _a1 *github.Response, _a2 error) *GHOAuthClient_GetUser_Call
- func (_c *GHOAuthClient_GetUser_Call) Run(run func(ctx context.Context)) *GHOAuthClient_GetUser_Call
- func (_c *GHOAuthClient_GetUser_Call) RunAndReturn(run func(context.Context) (*github.User, *github.Response, error)) *GHOAuthClient_GetUser_Call
- type GHOAuthClient_ListOrganizations_Call
- func (_c *GHOAuthClient_ListOrganizations_Call) Return(_a0 []*github.Organization, _a1 *github.Response, _a2 error) *GHOAuthClient_ListOrganizations_Call
- func (_c *GHOAuthClient_ListOrganizations_Call) Run(run func(ctx context.Context)) *GHOAuthClient_ListOrganizations_Call
- func (_c *GHOAuthClient_ListOrganizations_Call) RunAndReturn(run func(context.Context) ([]*github.Organization, *github.Response, error)) *GHOAuthClient_ListOrganizations_Call
- type GHOAuthClient_ListOwnerRepos_Call
- func (_c *GHOAuthClient_ListOwnerRepos_Call) Return(_a0 []*github.Repository, _a1 error) *GHOAuthClient_ListOwnerRepos_Call
- func (_c *GHOAuthClient_ListOwnerRepos_Call) Run(run func(ctx context.Context, owner string)) *GHOAuthClient_ListOwnerRepos_Call
- func (_c *GHOAuthClient_ListOwnerRepos_Call) RunAndReturn(run func(context.Context, string) ([]*github.Repository, error)) *GHOAuthClient_ListOwnerRepos_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GHOAuthClient ¶
GHOAuthClient is an autogenerated mock type for the GHOAuthClient type
func NewGHOAuthClient ¶
func NewGHOAuthClient(t mockConstructorTestingTNewGHOAuthClient) *GHOAuthClient
NewGHOAuthClient creates a new instance of GHOAuthClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GHOAuthClient) EXPECT ¶
func (_m *GHOAuthClient) EXPECT() *GHOAuthClient_Expecter
func (*GHOAuthClient) ListOrganizations ¶
func (_m *GHOAuthClient) ListOrganizations(ctx context.Context) ([]*github.Organization, *github.Response, error)
ListOrganizations provides a mock function with given fields: ctx
func (*GHOAuthClient) ListOwnerRepos ¶
func (_m *GHOAuthClient) ListOwnerRepos(ctx context.Context, owner string) ([]*github.Repository, error)
ListOwnerRepos provides a mock function with given fields: ctx, owner
type GHOAuthClient_Expecter ¶
type GHOAuthClient_Expecter struct {
// contains filtered or unexported fields
}
func (*GHOAuthClient_Expecter) GetUser ¶
func (_e *GHOAuthClient_Expecter) GetUser(ctx interface{}) *GHOAuthClient_GetUser_Call
GetUser is a helper method to define mock.On call
- ctx context.Context
func (*GHOAuthClient_Expecter) ListOrganizations ¶
func (_e *GHOAuthClient_Expecter) ListOrganizations(ctx interface{}) *GHOAuthClient_ListOrganizations_Call
ListOrganizations is a helper method to define mock.On call
- ctx context.Context
func (*GHOAuthClient_Expecter) ListOwnerRepos ¶
func (_e *GHOAuthClient_Expecter) ListOwnerRepos(ctx interface{}, owner interface{}) *GHOAuthClient_ListOwnerRepos_Call
ListOwnerRepos is a helper method to define mock.On call
- ctx context.Context
- owner string
type GHOAuthClient_GetUser_Call ¶
GHOAuthClient_GetUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUser'
func (*GHOAuthClient_GetUser_Call) Return ¶
func (_c *GHOAuthClient_GetUser_Call) Return(_a0 *github.User, _a1 *github.Response, _a2 error) *GHOAuthClient_GetUser_Call
func (*GHOAuthClient_GetUser_Call) Run ¶
func (_c *GHOAuthClient_GetUser_Call) Run(run func(ctx context.Context)) *GHOAuthClient_GetUser_Call
func (*GHOAuthClient_GetUser_Call) RunAndReturn ¶
func (_c *GHOAuthClient_GetUser_Call) RunAndReturn(run func(context.Context) (*github.User, *github.Response, error)) *GHOAuthClient_GetUser_Call
type GHOAuthClient_ListOrganizations_Call ¶
GHOAuthClient_ListOrganizations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListOrganizations'
func (*GHOAuthClient_ListOrganizations_Call) Return ¶
func (_c *GHOAuthClient_ListOrganizations_Call) Return(_a0 []*github.Organization, _a1 *github.Response, _a2 error) *GHOAuthClient_ListOrganizations_Call
func (*GHOAuthClient_ListOrganizations_Call) Run ¶
func (_c *GHOAuthClient_ListOrganizations_Call) Run(run func(ctx context.Context)) *GHOAuthClient_ListOrganizations_Call
func (*GHOAuthClient_ListOrganizations_Call) RunAndReturn ¶
func (_c *GHOAuthClient_ListOrganizations_Call) RunAndReturn(run func(context.Context) ([]*github.Organization, *github.Response, error)) *GHOAuthClient_ListOrganizations_Call
type GHOAuthClient_ListOwnerRepos_Call ¶
GHOAuthClient_ListOwnerRepos_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListOwnerRepos'
func (*GHOAuthClient_ListOwnerRepos_Call) Return ¶
func (_c *GHOAuthClient_ListOwnerRepos_Call) Return(_a0 []*github.Repository, _a1 error) *GHOAuthClient_ListOwnerRepos_Call
func (*GHOAuthClient_ListOwnerRepos_Call) Run ¶
func (_c *GHOAuthClient_ListOwnerRepos_Call) Run(run func(ctx context.Context, owner string)) *GHOAuthClient_ListOwnerRepos_Call
func (*GHOAuthClient_ListOwnerRepos_Call) RunAndReturn ¶
func (_c *GHOAuthClient_ListOwnerRepos_Call) RunAndReturn(run func(context.Context, string) ([]*github.Repository, error)) *GHOAuthClient_ListOwnerRepos_Call