Documentation
¶
Index ¶
- type Repository
- func (_m *Repository) CompareCommits(ctx context.Context, owner string, repo string, base string, head string, ...) (*github.CommitsComparison, *github.Response, error)
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) GetCommit(ctx context.Context, owner string, repo string, sha string, ...) (*github.RepositoryCommit, *github.Response, error)
- func (_m *Repository) GetContents(ctx context.Context, owner string, repo string, path string, ...) (*github.RepositoryContent, []*github.RepositoryContent, *github.Response, ...)
- func (_m *Repository) ListCommits(ctx context.Context, owner string, repo string, ...) ([]*github.RepositoryCommit, *github.Response, error)
- type Repository_CompareCommits_Call
- func (_c *Repository_CompareCommits_Call) Return(_a0 *github.CommitsComparison, _a1 *github.Response, _a2 error) *Repository_CompareCommits_Call
- func (_c *Repository_CompareCommits_Call) Run(...) *Repository_CompareCommits_Call
- func (_c *Repository_CompareCommits_Call) RunAndReturn(...) *Repository_CompareCommits_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) CompareCommits(ctx interface{}, owner interface{}, repo interface{}, base interface{}, ...) *Repository_CompareCommits_Call
- func (_e *Repository_Expecter) GetCommit(ctx interface{}, owner interface{}, repo interface{}, sha interface{}, ...) *Repository_GetCommit_Call
- func (_e *Repository_Expecter) GetContents(ctx interface{}, owner interface{}, repo interface{}, path interface{}, ...) *Repository_GetContents_Call
- func (_e *Repository_Expecter) ListCommits(ctx interface{}, owner interface{}, repo interface{}, opts interface{}) *Repository_ListCommits_Call
- type Repository_GetCommit_Call
- func (_c *Repository_GetCommit_Call) Return(_a0 *github.RepositoryCommit, _a1 *github.Response, _a2 error) *Repository_GetCommit_Call
- func (_c *Repository_GetCommit_Call) Run(run func(ctx context.Context, owner string, repo string, sha string, ...)) *Repository_GetCommit_Call
- func (_c *Repository_GetCommit_Call) RunAndReturn(...) *Repository_GetCommit_Call
- type Repository_GetContents_Call
- func (_c *Repository_GetContents_Call) Return(fileContent *github.RepositoryContent, ...) *Repository_GetContents_Call
- func (_c *Repository_GetContents_Call) Run(run func(ctx context.Context, owner string, repo string, path string, ...)) *Repository_GetContents_Call
- func (_c *Repository_GetContents_Call) RunAndReturn(...) *Repository_GetContents_Call
- type Repository_ListCommits_Call
- func (_c *Repository_ListCommits_Call) Return(_a0 []*github.RepositoryCommit, _a1 *github.Response, _a2 error) *Repository_ListCommits_Call
- func (_c *Repository_ListCommits_Call) Run(run func(ctx context.Context, owner string, repo string, ...)) *Repository_ListCommits_Call
- func (_c *Repository_ListCommits_Call) RunAndReturn(...) *Repository_ListCommits_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
func NewRepository(t interface {
mock.TestingT
Cleanup(func())
}) *Repository
NewRepository creates a new instance of Repository. 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 (*Repository) CompareCommits ¶
func (_m *Repository) CompareCommits(ctx context.Context, owner string, repo string, base string, head string, opts *github.ListOptions) (*github.CommitsComparison, *github.Response, error)
CompareCommits provides a mock function with given fields: ctx, owner, repo, base, head, opts
func (*Repository) EXPECT ¶ added in v0.21.7
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) GetCommit ¶ added in v0.21.7
func (_m *Repository) GetCommit(ctx context.Context, owner string, repo string, sha string, opts *github.ListOptions) (*github.RepositoryCommit, *github.Response, error)
GetCommit provides a mock function with given fields: ctx, owner, repo, sha, opts
func (*Repository) GetContents ¶
func (_m *Repository) GetContents(ctx context.Context, owner string, repo string, path string, opts *github.RepositoryContentGetOptions) (*github.RepositoryContent, []*github.RepositoryContent, *github.Response, error)
GetContents provides a mock function with given fields: ctx, owner, repo, path, opts
func (*Repository) ListCommits ¶ added in v0.21.7
func (_m *Repository) ListCommits(ctx context.Context, owner string, repo string, opts *github.CommitsListOptions) ([]*github.RepositoryCommit, *github.Response, error)
ListCommits provides a mock function with given fields: ctx, owner, repo, opts
type Repository_CompareCommits_Call ¶ added in v0.21.7
Repository_CompareCommits_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CompareCommits'
func (*Repository_CompareCommits_Call) Return ¶ added in v0.21.7
func (_c *Repository_CompareCommits_Call) Return(_a0 *github.CommitsComparison, _a1 *github.Response, _a2 error) *Repository_CompareCommits_Call
func (*Repository_CompareCommits_Call) Run ¶ added in v0.21.7
func (_c *Repository_CompareCommits_Call) Run(run func(ctx context.Context, owner string, repo string, base string, head string, opts *github.ListOptions)) *Repository_CompareCommits_Call
func (*Repository_CompareCommits_Call) RunAndReturn ¶ added in v0.21.7
func (_c *Repository_CompareCommits_Call) RunAndReturn(run func(context.Context, string, string, string, string, *github.ListOptions) (*github.CommitsComparison, *github.Response, error)) *Repository_CompareCommits_Call
type Repository_Expecter ¶ added in v0.21.7
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) CompareCommits ¶ added in v0.21.7
func (_e *Repository_Expecter) CompareCommits(ctx interface{}, owner interface{}, repo interface{}, base interface{}, head interface{}, opts interface{}) *Repository_CompareCommits_Call
CompareCommits is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- base string
- head string
- opts *github.ListOptions
func (*Repository_Expecter) GetCommit ¶ added in v0.21.7
func (_e *Repository_Expecter) GetCommit(ctx interface{}, owner interface{}, repo interface{}, sha interface{}, opts interface{}) *Repository_GetCommit_Call
GetCommit is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- sha string
- opts *github.ListOptions
func (*Repository_Expecter) GetContents ¶ added in v0.21.7
func (_e *Repository_Expecter) GetContents(ctx interface{}, owner interface{}, repo interface{}, path interface{}, opts interface{}) *Repository_GetContents_Call
GetContents is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- path string
- opts *github.RepositoryContentGetOptions
func (*Repository_Expecter) ListCommits ¶ added in v0.21.7
func (_e *Repository_Expecter) ListCommits(ctx interface{}, owner interface{}, repo interface{}, opts interface{}) *Repository_ListCommits_Call
ListCommits is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- opts *github.CommitsListOptions
type Repository_GetCommit_Call ¶ added in v0.21.7
Repository_GetCommit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCommit'
func (*Repository_GetCommit_Call) Return ¶ added in v0.21.7
func (_c *Repository_GetCommit_Call) Return(_a0 *github.RepositoryCommit, _a1 *github.Response, _a2 error) *Repository_GetCommit_Call
func (*Repository_GetCommit_Call) Run ¶ added in v0.21.7
func (_c *Repository_GetCommit_Call) Run(run func(ctx context.Context, owner string, repo string, sha string, opts *github.ListOptions)) *Repository_GetCommit_Call
func (*Repository_GetCommit_Call) RunAndReturn ¶ added in v0.21.7
func (_c *Repository_GetCommit_Call) RunAndReturn(run func(context.Context, string, string, string, *github.ListOptions) (*github.RepositoryCommit, *github.Response, error)) *Repository_GetCommit_Call
type Repository_GetContents_Call ¶ added in v0.21.7
Repository_GetContents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetContents'
func (*Repository_GetContents_Call) Return ¶ added in v0.21.7
func (_c *Repository_GetContents_Call) Return(fileContent *github.RepositoryContent, directoryContent []*github.RepositoryContent, resp *github.Response, err error) *Repository_GetContents_Call
func (*Repository_GetContents_Call) Run ¶ added in v0.21.7
func (_c *Repository_GetContents_Call) Run(run func(ctx context.Context, owner string, repo string, path string, opts *github.RepositoryContentGetOptions)) *Repository_GetContents_Call
func (*Repository_GetContents_Call) RunAndReturn ¶ added in v0.21.7
func (_c *Repository_GetContents_Call) RunAndReturn(run func(context.Context, string, string, string, *github.RepositoryContentGetOptions) (*github.RepositoryContent, []*github.RepositoryContent, *github.Response, error)) *Repository_GetContents_Call
type Repository_ListCommits_Call ¶ added in v0.21.7
Repository_ListCommits_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCommits'
func (*Repository_ListCommits_Call) Return ¶ added in v0.21.7
func (_c *Repository_ListCommits_Call) Return(_a0 []*github.RepositoryCommit, _a1 *github.Response, _a2 error) *Repository_ListCommits_Call
func (*Repository_ListCommits_Call) Run ¶ added in v0.21.7
func (_c *Repository_ListCommits_Call) Run(run func(ctx context.Context, owner string, repo string, opts *github.CommitsListOptions)) *Repository_ListCommits_Call
func (*Repository_ListCommits_Call) RunAndReturn ¶ added in v0.21.7
func (_c *Repository_ListCommits_Call) RunAndReturn(run func(context.Context, string, string, *github.CommitsListOptions) ([]*github.RepositoryCommit, *github.Response, error)) *Repository_ListCommits_Call