Documentation
¶
Index ¶
- type GHRepoService
- func (_m *GHRepoService) EXPECT() *GHRepoService_Expecter
- func (_m *GHRepoService) GetCommitSHA1(ctx context.Context, owner string, repo string, ref string, lastSHA string) (string, *github.Response, error)
- func (_m *GHRepoService) GetLatestRelease(ctx context.Context, owner string, repo string) (*github.RepositoryRelease, *github.Response, error)
- func (_m *GHRepoService) GetReleaseByTag(ctx context.Context, owner string, repo string, tag string) (*github.RepositoryRelease, *github.Response, error)
- func (_m *GHRepoService) ListReleases(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.RepositoryRelease, *github.Response, error)
- type GHRepoService_Expecter
- func (_e *GHRepoService_Expecter) GetCommitSHA1(ctx interface{}, owner interface{}, repo interface{}, ref interface{}, ...) *GHRepoService_GetCommitSHA1_Call
- func (_e *GHRepoService_Expecter) GetLatestRelease(ctx interface{}, owner interface{}, repo interface{}) *GHRepoService_GetLatestRelease_Call
- func (_e *GHRepoService_Expecter) GetReleaseByTag(ctx interface{}, owner interface{}, repo interface{}, tag interface{}) *GHRepoService_GetReleaseByTag_Call
- func (_e *GHRepoService_Expecter) ListReleases(ctx interface{}, owner interface{}, repo interface{}, opts interface{}) *GHRepoService_ListReleases_Call
- type GHRepoService_GetCommitSHA1_Call
- func (_c *GHRepoService_GetCommitSHA1_Call) Return(_a0 string, _a1 *github.Response, _a2 error) *GHRepoService_GetCommitSHA1_Call
- func (_c *GHRepoService_GetCommitSHA1_Call) Run(...) *GHRepoService_GetCommitSHA1_Call
- func (_c *GHRepoService_GetCommitSHA1_Call) RunAndReturn(...) *GHRepoService_GetCommitSHA1_Call
- type GHRepoService_GetLatestRelease_Call
- func (_c *GHRepoService_GetLatestRelease_Call) Return(_a0 *github.RepositoryRelease, _a1 *github.Response, _a2 error) *GHRepoService_GetLatestRelease_Call
- func (_c *GHRepoService_GetLatestRelease_Call) Run(run func(ctx context.Context, owner string, repo string)) *GHRepoService_GetLatestRelease_Call
- func (_c *GHRepoService_GetLatestRelease_Call) RunAndReturn(...) *GHRepoService_GetLatestRelease_Call
- type GHRepoService_GetReleaseByTag_Call
- func (_c *GHRepoService_GetReleaseByTag_Call) Return(_a0 *github.RepositoryRelease, _a1 *github.Response, _a2 error) *GHRepoService_GetReleaseByTag_Call
- func (_c *GHRepoService_GetReleaseByTag_Call) Run(run func(ctx context.Context, owner string, repo string, tag string)) *GHRepoService_GetReleaseByTag_Call
- func (_c *GHRepoService_GetReleaseByTag_Call) RunAndReturn(...) *GHRepoService_GetReleaseByTag_Call
- type GHRepoService_ListReleases_Call
- func (_c *GHRepoService_ListReleases_Call) Return(_a0 []*github.RepositoryRelease, _a1 *github.Response, _a2 error) *GHRepoService_ListReleases_Call
- func (_c *GHRepoService_ListReleases_Call) Run(...) *GHRepoService_ListReleases_Call
- func (_c *GHRepoService_ListReleases_Call) RunAndReturn(...) *GHRepoService_ListReleases_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GHRepoService ¶
GHRepoService is an autogenerated mock type for the GHRepoService type
func NewGHRepoService ¶ added in v0.9.5
func NewGHRepoService(t interface {
mock.TestingT
Cleanup(func())
}) *GHRepoService
NewGHRepoService creates a new instance of GHRepoService. 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 (*GHRepoService) EXPECT ¶ added in v0.9.5
func (_m *GHRepoService) EXPECT() *GHRepoService_Expecter
func (*GHRepoService) GetCommitSHA1 ¶
func (_m *GHRepoService) GetCommitSHA1(ctx context.Context, owner string, repo string, ref string, lastSHA string) (string, *github.Response, error)
GetCommitSHA1 provides a mock function with given fields: ctx, owner, repo, ref, lastSHA
func (*GHRepoService) GetLatestRelease ¶
func (_m *GHRepoService) GetLatestRelease(ctx context.Context, owner string, repo string) (*github.RepositoryRelease, *github.Response, error)
GetLatestRelease provides a mock function with given fields: ctx, owner, repo
func (*GHRepoService) GetReleaseByTag ¶
func (_m *GHRepoService) GetReleaseByTag(ctx context.Context, owner string, repo string, tag string) (*github.RepositoryRelease, *github.Response, error)
GetReleaseByTag provides a mock function with given fields: ctx, owner, repo, tag
func (*GHRepoService) ListReleases ¶
func (_m *GHRepoService) ListReleases(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.RepositoryRelease, *github.Response, error)
ListReleases provides a mock function with given fields: ctx, owner, repo, opts
type GHRepoService_Expecter ¶ added in v0.9.5
type GHRepoService_Expecter struct {
// contains filtered or unexported fields
}
func (*GHRepoService_Expecter) GetCommitSHA1 ¶ added in v0.9.5
func (_e *GHRepoService_Expecter) GetCommitSHA1(ctx interface{}, owner interface{}, repo interface{}, ref interface{}, lastSHA interface{}) *GHRepoService_GetCommitSHA1_Call
GetCommitSHA1 is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- ref string
- lastSHA string
func (*GHRepoService_Expecter) GetLatestRelease ¶ added in v0.9.5
func (_e *GHRepoService_Expecter) GetLatestRelease(ctx interface{}, owner interface{}, repo interface{}) *GHRepoService_GetLatestRelease_Call
GetLatestRelease is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
func (*GHRepoService_Expecter) GetReleaseByTag ¶ added in v0.9.5
func (_e *GHRepoService_Expecter) GetReleaseByTag(ctx interface{}, owner interface{}, repo interface{}, tag interface{}) *GHRepoService_GetReleaseByTag_Call
GetReleaseByTag is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- tag string
func (*GHRepoService_Expecter) ListReleases ¶ added in v0.9.5
func (_e *GHRepoService_Expecter) ListReleases(ctx interface{}, owner interface{}, repo interface{}, opts interface{}) *GHRepoService_ListReleases_Call
ListReleases is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- opts *github.ListOptions
type GHRepoService_GetCommitSHA1_Call ¶ added in v0.9.5
GHRepoService_GetCommitSHA1_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCommitSHA1'
func (*GHRepoService_GetCommitSHA1_Call) Return ¶ added in v0.9.5
func (_c *GHRepoService_GetCommitSHA1_Call) Return(_a0 string, _a1 *github.Response, _a2 error) *GHRepoService_GetCommitSHA1_Call
func (*GHRepoService_GetCommitSHA1_Call) Run ¶ added in v0.9.5
func (_c *GHRepoService_GetCommitSHA1_Call) Run(run func(ctx context.Context, owner string, repo string, ref string, lastSHA string)) *GHRepoService_GetCommitSHA1_Call
func (*GHRepoService_GetCommitSHA1_Call) RunAndReturn ¶ added in v0.9.5
type GHRepoService_GetLatestRelease_Call ¶ added in v0.9.5
GHRepoService_GetLatestRelease_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestRelease'
func (*GHRepoService_GetLatestRelease_Call) Return ¶ added in v0.9.5
func (_c *GHRepoService_GetLatestRelease_Call) Return(_a0 *github.RepositoryRelease, _a1 *github.Response, _a2 error) *GHRepoService_GetLatestRelease_Call
func (*GHRepoService_GetLatestRelease_Call) Run ¶ added in v0.9.5
func (_c *GHRepoService_GetLatestRelease_Call) Run(run func(ctx context.Context, owner string, repo string)) *GHRepoService_GetLatestRelease_Call
func (*GHRepoService_GetLatestRelease_Call) RunAndReturn ¶ added in v0.9.5
func (_c *GHRepoService_GetLatestRelease_Call) RunAndReturn(run func(context.Context, string, string) (*github.RepositoryRelease, *github.Response, error)) *GHRepoService_GetLatestRelease_Call
type GHRepoService_GetReleaseByTag_Call ¶ added in v0.9.5
GHRepoService_GetReleaseByTag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReleaseByTag'
func (*GHRepoService_GetReleaseByTag_Call) Return ¶ added in v0.9.5
func (_c *GHRepoService_GetReleaseByTag_Call) Return(_a0 *github.RepositoryRelease, _a1 *github.Response, _a2 error) *GHRepoService_GetReleaseByTag_Call
func (*GHRepoService_GetReleaseByTag_Call) Run ¶ added in v0.9.5
func (_c *GHRepoService_GetReleaseByTag_Call) Run(run func(ctx context.Context, owner string, repo string, tag string)) *GHRepoService_GetReleaseByTag_Call
func (*GHRepoService_GetReleaseByTag_Call) RunAndReturn ¶ added in v0.9.5
func (_c *GHRepoService_GetReleaseByTag_Call) RunAndReturn(run func(context.Context, string, string, string) (*github.RepositoryRelease, *github.Response, error)) *GHRepoService_GetReleaseByTag_Call
type GHRepoService_ListReleases_Call ¶ added in v0.9.5
GHRepoService_ListReleases_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListReleases'
func (*GHRepoService_ListReleases_Call) Return ¶ added in v0.9.5
func (_c *GHRepoService_ListReleases_Call) Return(_a0 []*github.RepositoryRelease, _a1 *github.Response, _a2 error) *GHRepoService_ListReleases_Call
func (*GHRepoService_ListReleases_Call) Run ¶ added in v0.9.5
func (_c *GHRepoService_ListReleases_Call) Run(run func(ctx context.Context, owner string, repo string, opts *github.ListOptions)) *GHRepoService_ListReleases_Call
func (*GHRepoService_ListReleases_Call) RunAndReturn ¶ added in v0.9.5
func (_c *GHRepoService_ListReleases_Call) RunAndReturn(run func(context.Context, string, string, *github.ListOptions) ([]*github.RepositoryRelease, *github.Response, error)) *GHRepoService_ListReleases_Call