Documentation
¶
Index ¶
- type Repo
- func (_mock *Repo) AllChangelogPaths(ctx context.Context) ([]string, error)
- func (_mock *Repo) CommitTagAndPush(ctx context.Context, opts vcs.CommitTagPushOptions) error
- func (_m *Repo) EXPECT() *Repo_Expecter
- func (_mock *Repo) IsChangelogModifiedSinceTag(ctx context.Context, changelogPath string, tagName string) (bool, error)
- func (_mock *Repo) ReachableTags(ctx context.Context) ([]vcs.TagInfo, error)
- type Repo_AllChangelogPaths_Call
- func (_c *Repo_AllChangelogPaths_Call) Return(strings []string, err error) *Repo_AllChangelogPaths_Call
- func (_c *Repo_AllChangelogPaths_Call) Run(run func(ctx context.Context)) *Repo_AllChangelogPaths_Call
- func (_c *Repo_AllChangelogPaths_Call) RunAndReturn(run func(ctx context.Context) ([]string, error)) *Repo_AllChangelogPaths_Call
- type Repo_CommitTagAndPush_Call
- func (_c *Repo_CommitTagAndPush_Call) Return(err error) *Repo_CommitTagAndPush_Call
- func (_c *Repo_CommitTagAndPush_Call) Run(run func(ctx context.Context, opts vcs.CommitTagPushOptions)) *Repo_CommitTagAndPush_Call
- func (_c *Repo_CommitTagAndPush_Call) RunAndReturn(run func(ctx context.Context, opts vcs.CommitTagPushOptions) error) *Repo_CommitTagAndPush_Call
- type Repo_Expecter
- func (_e *Repo_Expecter) AllChangelogPaths(ctx interface{}) *Repo_AllChangelogPaths_Call
- func (_e *Repo_Expecter) CommitTagAndPush(ctx interface{}, opts interface{}) *Repo_CommitTagAndPush_Call
- func (_e *Repo_Expecter) IsChangelogModifiedSinceTag(ctx interface{}, changelogPath interface{}, tagName interface{}) *Repo_IsChangelogModifiedSinceTag_Call
- func (_e *Repo_Expecter) ReachableTags(ctx interface{}) *Repo_ReachableTags_Call
- type Repo_IsChangelogModifiedSinceTag_Call
- func (_c *Repo_IsChangelogModifiedSinceTag_Call) Return(b bool, err error) *Repo_IsChangelogModifiedSinceTag_Call
- func (_c *Repo_IsChangelogModifiedSinceTag_Call) Run(run func(ctx context.Context, changelogPath string, tagName string)) *Repo_IsChangelogModifiedSinceTag_Call
- func (_c *Repo_IsChangelogModifiedSinceTag_Call) RunAndReturn(...) *Repo_IsChangelogModifiedSinceTag_Call
- type Repo_ReachableTags_Call
- func (_c *Repo_ReachableTags_Call) Return(tagInfos []vcs.TagInfo, err error) *Repo_ReachableTags_Call
- func (_c *Repo_ReachableTags_Call) Run(run func(ctx context.Context)) *Repo_ReachableTags_Call
- func (_c *Repo_ReachableTags_Call) RunAndReturn(run func(ctx context.Context) ([]vcs.TagInfo, error)) *Repo_ReachableTags_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
Repo is an autogenerated mock type for the Repo type
func NewRepo ¶
NewRepo creates a new instance of Repo. 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 (*Repo) AllChangelogPaths ¶
AllChangelogPaths provides a mock function for the type Repo
func (*Repo) CommitTagAndPush ¶
CommitTagAndPush provides a mock function for the type Repo
func (*Repo) EXPECT ¶
func (_m *Repo) EXPECT() *Repo_Expecter
type Repo_AllChangelogPaths_Call ¶
Repo_AllChangelogPaths_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllChangelogPaths'
func (*Repo_AllChangelogPaths_Call) Return ¶
func (_c *Repo_AllChangelogPaths_Call) Return(strings []string, err error) *Repo_AllChangelogPaths_Call
func (*Repo_AllChangelogPaths_Call) Run ¶
func (_c *Repo_AllChangelogPaths_Call) Run(run func(ctx context.Context)) *Repo_AllChangelogPaths_Call
func (*Repo_AllChangelogPaths_Call) RunAndReturn ¶
func (_c *Repo_AllChangelogPaths_Call) RunAndReturn(run func(ctx context.Context) ([]string, error)) *Repo_AllChangelogPaths_Call
type Repo_CommitTagAndPush_Call ¶
Repo_CommitTagAndPush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CommitTagAndPush'
func (*Repo_CommitTagAndPush_Call) Return ¶
func (_c *Repo_CommitTagAndPush_Call) Return(err error) *Repo_CommitTagAndPush_Call
func (*Repo_CommitTagAndPush_Call) Run ¶
func (_c *Repo_CommitTagAndPush_Call) Run(run func(ctx context.Context, opts vcs.CommitTagPushOptions)) *Repo_CommitTagAndPush_Call
func (*Repo_CommitTagAndPush_Call) RunAndReturn ¶
func (_c *Repo_CommitTagAndPush_Call) RunAndReturn(run func(ctx context.Context, opts vcs.CommitTagPushOptions) error) *Repo_CommitTagAndPush_Call
type Repo_Expecter ¶
type Repo_Expecter struct {
// contains filtered or unexported fields
}
func (*Repo_Expecter) AllChangelogPaths ¶
func (_e *Repo_Expecter) AllChangelogPaths(ctx interface{}) *Repo_AllChangelogPaths_Call
AllChangelogPaths is a helper method to define mock.On call
- ctx context.Context
func (*Repo_Expecter) CommitTagAndPush ¶
func (_e *Repo_Expecter) CommitTagAndPush(ctx interface{}, opts interface{}) *Repo_CommitTagAndPush_Call
CommitTagAndPush is a helper method to define mock.On call
- ctx context.Context
- opts vcs.CommitTagPushOptions
func (*Repo_Expecter) IsChangelogModifiedSinceTag ¶
func (_e *Repo_Expecter) IsChangelogModifiedSinceTag(ctx interface{}, changelogPath interface{}, tagName interface{}) *Repo_IsChangelogModifiedSinceTag_Call
IsChangelogModifiedSinceTag is a helper method to define mock.On call
- ctx context.Context
- changelogPath string
- tagName string
func (*Repo_Expecter) ReachableTags ¶
func (_e *Repo_Expecter) ReachableTags(ctx interface{}) *Repo_ReachableTags_Call
ReachableTags is a helper method to define mock.On call
- ctx context.Context
type Repo_IsChangelogModifiedSinceTag_Call ¶
Repo_IsChangelogModifiedSinceTag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsChangelogModifiedSinceTag'
func (*Repo_IsChangelogModifiedSinceTag_Call) Return ¶
func (_c *Repo_IsChangelogModifiedSinceTag_Call) Return(b bool, err error) *Repo_IsChangelogModifiedSinceTag_Call
func (*Repo_IsChangelogModifiedSinceTag_Call) Run ¶
func (_c *Repo_IsChangelogModifiedSinceTag_Call) Run(run func(ctx context.Context, changelogPath string, tagName string)) *Repo_IsChangelogModifiedSinceTag_Call
func (*Repo_IsChangelogModifiedSinceTag_Call) RunAndReturn ¶
func (_c *Repo_IsChangelogModifiedSinceTag_Call) RunAndReturn(run func(ctx context.Context, changelogPath string, tagName string) (bool, error)) *Repo_IsChangelogModifiedSinceTag_Call
type Repo_ReachableTags_Call ¶
Repo_ReachableTags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReachableTags'
func (*Repo_ReachableTags_Call) Return ¶
func (_c *Repo_ReachableTags_Call) Return(tagInfos []vcs.TagInfo, err error) *Repo_ReachableTags_Call
func (*Repo_ReachableTags_Call) Run ¶
func (_c *Repo_ReachableTags_Call) Run(run func(ctx context.Context)) *Repo_ReachableTags_Call
func (*Repo_ReachableTags_Call) RunAndReturn ¶
func (_c *Repo_ReachableTags_Call) RunAndReturn(run func(ctx context.Context) ([]vcs.TagInfo, error)) *Repo_ReachableTags_Call