Documentation
¶
Index ¶
- type Client
- type Client_Expecter
- type Client_Gists_Call
- type Client_Issues_Call
- type GistClient
- func (_m *GistClient) Create(ctx context.Context, gist *github.Gist) (*github.Gist, *github.Response, error)
- func (_m *GistClient) EXPECT() *GistClient_Expecter
- func (_m *GistClient) Edit(ctx context.Context, id string, gist *github.Gist) (*github.Gist, *github.Response, error)
- func (_m *GistClient) Get(ctx context.Context, id string) (*github.Gist, *github.Response, error)
- type GistClient_Create_Call
- func (_c *GistClient_Create_Call) Return(_a0 *github.Gist, _a1 *github.Response, _a2 error) *GistClient_Create_Call
- func (_c *GistClient_Create_Call) Run(run func(ctx context.Context, gist *github.Gist)) *GistClient_Create_Call
- func (_c *GistClient_Create_Call) RunAndReturn(...) *GistClient_Create_Call
- type GistClient_Edit_Call
- func (_c *GistClient_Edit_Call) Return(_a0 *github.Gist, _a1 *github.Response, _a2 error) *GistClient_Edit_Call
- func (_c *GistClient_Edit_Call) Run(run func(ctx context.Context, id string, gist *github.Gist)) *GistClient_Edit_Call
- func (_c *GistClient_Edit_Call) RunAndReturn(...) *GistClient_Edit_Call
- type GistClient_Expecter
- type GistClient_Get_Call
- func (_c *GistClient_Get_Call) Return(_a0 *github.Gist, _a1 *github.Response, _a2 error) *GistClient_Get_Call
- func (_c *GistClient_Get_Call) Run(run func(ctx context.Context, id string)) *GistClient_Get_Call
- func (_c *GistClient_Get_Call) RunAndReturn(run func(context.Context, string) (*github.Gist, *github.Response, error)) *GistClient_Get_Call
- type IssuesClient
- type IssuesClient_Expecter
- type IssuesClient_ListByRepo_Call
- func (_c *IssuesClient_ListByRepo_Call) Return(_a0 []*github.Issue, _a1 *github.Response, _a2 error) *IssuesClient_ListByRepo_Call
- func (_c *IssuesClient_ListByRepo_Call) Run(run func(ctx context.Context, owner string, repo string, ...)) *IssuesClient_ListByRepo_Call
- func (_c *IssuesClient_ListByRepo_Call) RunAndReturn(...) *IssuesClient_ListByRepo_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
NewClient creates a new instance of Client. 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 (*Client) EXPECT ¶
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) Gists ¶
func (_m *Client) Gists() github.GistClient
Gists provides a mock function with no fields
func (*Client) Issues ¶
func (_m *Client) Issues() github.IssuesClient
Issues provides a mock function with no fields
type Client_Expecter ¶
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) Gists ¶
func (_e *Client_Expecter) Gists() *Client_Gists_Call
Gists is a helper method to define mock.On call
func (*Client_Expecter) Issues ¶
func (_e *Client_Expecter) Issues() *Client_Issues_Call
Issues is a helper method to define mock.On call
type Client_Gists_Call ¶
Client_Gists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Gists'
func (*Client_Gists_Call) Return ¶
func (_c *Client_Gists_Call) Return(_a0 github.GistClient) *Client_Gists_Call
func (*Client_Gists_Call) Run ¶
func (_c *Client_Gists_Call) Run(run func()) *Client_Gists_Call
func (*Client_Gists_Call) RunAndReturn ¶
func (_c *Client_Gists_Call) RunAndReturn(run func() github.GistClient) *Client_Gists_Call
type Client_Issues_Call ¶
Client_Issues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Issues'
func (*Client_Issues_Call) Return ¶
func (_c *Client_Issues_Call) Return(_a0 github.IssuesClient) *Client_Issues_Call
func (*Client_Issues_Call) Run ¶
func (_c *Client_Issues_Call) Run(run func()) *Client_Issues_Call
func (*Client_Issues_Call) RunAndReturn ¶
func (_c *Client_Issues_Call) RunAndReturn(run func() github.IssuesClient) *Client_Issues_Call
type GistClient ¶
GistClient is an autogenerated mock type for the GistClient type
func NewGistClient ¶
func NewGistClient(t interface {
mock.TestingT
Cleanup(func())
}) *GistClient
NewGistClient creates a new instance of GistClient. 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 (*GistClient) Create ¶
func (_m *GistClient) Create(ctx context.Context, gist *github.Gist) (*github.Gist, *github.Response, error)
Create provides a mock function with given fields: ctx, gist
func (*GistClient) EXPECT ¶
func (_m *GistClient) EXPECT() *GistClient_Expecter
type GistClient_Create_Call ¶
GistClient_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*GistClient_Create_Call) Return ¶
func (_c *GistClient_Create_Call) Return(_a0 *github.Gist, _a1 *github.Response, _a2 error) *GistClient_Create_Call
func (*GistClient_Create_Call) Run ¶
func (_c *GistClient_Create_Call) Run(run func(ctx context.Context, gist *github.Gist)) *GistClient_Create_Call
func (*GistClient_Create_Call) RunAndReturn ¶
type GistClient_Edit_Call ¶
GistClient_Edit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Edit'
func (*GistClient_Edit_Call) Return ¶
func (_c *GistClient_Edit_Call) Return(_a0 *github.Gist, _a1 *github.Response, _a2 error) *GistClient_Edit_Call
func (*GistClient_Edit_Call) Run ¶
func (_c *GistClient_Edit_Call) Run(run func(ctx context.Context, id string, gist *github.Gist)) *GistClient_Edit_Call
func (*GistClient_Edit_Call) RunAndReturn ¶
type GistClient_Expecter ¶
type GistClient_Expecter struct {
// contains filtered or unexported fields
}
func (*GistClient_Expecter) Create ¶
func (_e *GistClient_Expecter) Create(ctx interface{}, gist interface{}) *GistClient_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- gist *github.Gist
func (*GistClient_Expecter) Edit ¶
func (_e *GistClient_Expecter) Edit(ctx interface{}, id interface{}, gist interface{}) *GistClient_Edit_Call
Edit is a helper method to define mock.On call
- ctx context.Context
- id string
- gist *github.Gist
func (*GistClient_Expecter) Get ¶
func (_e *GistClient_Expecter) Get(ctx interface{}, id interface{}) *GistClient_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- id string
type GistClient_Get_Call ¶
GistClient_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*GistClient_Get_Call) Return ¶
func (_c *GistClient_Get_Call) Return(_a0 *github.Gist, _a1 *github.Response, _a2 error) *GistClient_Get_Call
func (*GistClient_Get_Call) Run ¶
func (_c *GistClient_Get_Call) Run(run func(ctx context.Context, id string)) *GistClient_Get_Call
func (*GistClient_Get_Call) RunAndReturn ¶
func (_c *GistClient_Get_Call) RunAndReturn(run func(context.Context, string) (*github.Gist, *github.Response, error)) *GistClient_Get_Call
type IssuesClient ¶
IssuesClient is an autogenerated mock type for the IssuesClient type
func NewIssuesClient ¶
func NewIssuesClient(t interface {
mock.TestingT
Cleanup(func())
}) *IssuesClient
NewIssuesClient creates a new instance of IssuesClient. 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 (*IssuesClient) EXPECT ¶
func (_m *IssuesClient) EXPECT() *IssuesClient_Expecter
func (*IssuesClient) ListByRepo ¶
func (_m *IssuesClient) ListByRepo(ctx context.Context, owner string, repo string, opts *github.IssueListByRepoOptions) ([]*github.Issue, *github.Response, error)
ListByRepo provides a mock function with given fields: ctx, owner, repo, opts
type IssuesClient_Expecter ¶
type IssuesClient_Expecter struct {
// contains filtered or unexported fields
}
func (*IssuesClient_Expecter) ListByRepo ¶
func (_e *IssuesClient_Expecter) ListByRepo(ctx interface{}, owner interface{}, repo interface{}, opts interface{}) *IssuesClient_ListByRepo_Call
ListByRepo is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- opts *github.IssueListByRepoOptions
type IssuesClient_ListByRepo_Call ¶
IssuesClient_ListByRepo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByRepo'
func (*IssuesClient_ListByRepo_Call) Return ¶
func (_c *IssuesClient_ListByRepo_Call) Return(_a0 []*github.Issue, _a1 *github.Response, _a2 error) *IssuesClient_ListByRepo_Call
func (*IssuesClient_ListByRepo_Call) Run ¶
func (_c *IssuesClient_ListByRepo_Call) Run(run func(ctx context.Context, owner string, repo string, opts *github.IssueListByRepoOptions)) *IssuesClient_ListByRepo_Call
func (*IssuesClient_ListByRepo_Call) RunAndReturn ¶
func (_c *IssuesClient_ListByRepo_Call) RunAndReturn(run func(context.Context, string, string, *github.IssueListByRepoOptions) ([]*github.Issue, *github.Response, error)) *IssuesClient_ListByRepo_Call