Documentation
¶
Index ¶
- type PullRequests
- type PullRequests_Expecter
- type PullRequests_List_Call
- func (_c *PullRequests_List_Call) Return(_a0 []*github.PullRequest, _a1 *github.Response, _a2 error) *PullRequests_List_Call
- func (_c *PullRequests_List_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string, ...)) *PullRequests_List_Call
- func (_c *PullRequests_List_Call) RunAndReturn(...) *PullRequests_List_Call
- type Repositories
- func (_m *Repositories) EXPECT() *Repositories_Expecter
- func (_m *Repositories) Get(_a0 context.Context, _a1 string, _a2 string) (*github.Repository, *github.Response, error)
- func (_m *Repositories) ListByUser(_a0 context.Context, _a1 string, _a2 *github.RepositoryListByUserOptions) ([]*github.Repository, *github.Response, error)
- type Repositories_Expecter
- type Repositories_Get_Call
- func (_c *Repositories_Get_Call) Return(_a0 *github.Repository, _a1 *github.Response, _a2 error) *Repositories_Get_Call
- func (_c *Repositories_Get_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *Repositories_Get_Call
- func (_c *Repositories_Get_Call) RunAndReturn(...) *Repositories_Get_Call
- type Repositories_ListByUser_Call
- func (_c *Repositories_ListByUser_Call) Return(_a0 []*github.Repository, _a1 *github.Response, _a2 error) *Repositories_ListByUser_Call
- func (_c *Repositories_ListByUser_Call) Run(...) *Repositories_ListByUser_Call
- func (_c *Repositories_ListByUser_Call) RunAndReturn(...) *Repositories_ListByUser_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PullRequests ¶
PullRequests is an autogenerated mock type for the PullRequests type
func NewPullRequests ¶
func NewPullRequests(t interface {
mock.TestingT
Cleanup(func())
}) *PullRequests
NewPullRequests creates a new instance of PullRequests. 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 (*PullRequests) EXPECT ¶
func (_m *PullRequests) EXPECT() *PullRequests_Expecter
func (*PullRequests) List ¶
func (_m *PullRequests) List(_a0 context.Context, _a1 string, _a2 string, _a3 *github.PullRequestListOptions) ([]*github.PullRequest, *github.Response, error)
List provides a mock function with given fields: _a0, _a1, _a2, _a3
type PullRequests_Expecter ¶
type PullRequests_Expecter struct {
// contains filtered or unexported fields
}
func (*PullRequests_Expecter) List ¶
func (_e *PullRequests_Expecter) List(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *PullRequests_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 string
- _a3 *github.PullRequestListOptions
type PullRequests_List_Call ¶
PullRequests_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*PullRequests_List_Call) Return ¶
func (_c *PullRequests_List_Call) Return(_a0 []*github.PullRequest, _a1 *github.Response, _a2 error) *PullRequests_List_Call
func (*PullRequests_List_Call) Run ¶
func (_c *PullRequests_List_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string, _a3 *github.PullRequestListOptions)) *PullRequests_List_Call
func (*PullRequests_List_Call) RunAndReturn ¶
func (_c *PullRequests_List_Call) RunAndReturn(run func(context.Context, string, string, *github.PullRequestListOptions) ([]*github.PullRequest, *github.Response, error)) *PullRequests_List_Call
type Repositories ¶
Repositories is an autogenerated mock type for the Repositories type
func NewRepositories ¶
func NewRepositories(t interface {
mock.TestingT
Cleanup(func())
}) *Repositories
NewRepositories creates a new instance of Repositories. 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 (*Repositories) EXPECT ¶
func (_m *Repositories) EXPECT() *Repositories_Expecter
func (*Repositories) Get ¶
func (_m *Repositories) Get(_a0 context.Context, _a1 string, _a2 string) (*github.Repository, *github.Response, error)
Get provides a mock function with given fields: _a0, _a1, _a2
func (*Repositories) ListByUser ¶
func (_m *Repositories) ListByUser(_a0 context.Context, _a1 string, _a2 *github.RepositoryListByUserOptions) ([]*github.Repository, *github.Response, error)
ListByUser provides a mock function with given fields: _a0, _a1, _a2
type Repositories_Expecter ¶
type Repositories_Expecter struct {
// contains filtered or unexported fields
}
func (*Repositories_Expecter) Get ¶
func (_e *Repositories_Expecter) Get(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Repositories_Get_Call
Get is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 string
func (*Repositories_Expecter) ListByUser ¶
func (_e *Repositories_Expecter) ListByUser(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Repositories_ListByUser_Call
ListByUser is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 *github.RepositoryListByUserOptions
type Repositories_Get_Call ¶
Repositories_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Repositories_Get_Call) Return ¶
func (_c *Repositories_Get_Call) Return(_a0 *github.Repository, _a1 *github.Response, _a2 error) *Repositories_Get_Call
func (*Repositories_Get_Call) Run ¶
func (_c *Repositories_Get_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string)) *Repositories_Get_Call
func (*Repositories_Get_Call) RunAndReturn ¶
func (_c *Repositories_Get_Call) RunAndReturn(run func(context.Context, string, string) (*github.Repository, *github.Response, error)) *Repositories_Get_Call
type Repositories_ListByUser_Call ¶
Repositories_ListByUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByUser'
func (*Repositories_ListByUser_Call) Return ¶
func (_c *Repositories_ListByUser_Call) Return(_a0 []*github.Repository, _a1 *github.Response, _a2 error) *Repositories_ListByUser_Call
func (*Repositories_ListByUser_Call) Run ¶
func (_c *Repositories_ListByUser_Call) Run(run func(_a0 context.Context, _a1 string, _a2 *github.RepositoryListByUserOptions)) *Repositories_ListByUser_Call
func (*Repositories_ListByUser_Call) RunAndReturn ¶
func (_c *Repositories_ListByUser_Call) RunAndReturn(run func(context.Context, string, *github.RepositoryListByUserOptions) ([]*github.Repository, *github.Response, error)) *Repositories_ListByUser_Call