Documentation
¶
Index ¶
- type MockUpdater
- func (_m *MockUpdater) EXPECT() *MockUpdater_Expecter
- func (_mock *MockUpdater) GetCurrentVersion() string
- func (_mock *MockUpdater) GetLatestVersionString(ctx context.Context) (string, error)
- func (_mock *MockUpdater) GetReleaseNotes(ctx context.Context, from string, to string) (string, error)
- func (_mock *MockUpdater) Update(ctx context.Context) (string, error)
- func (_mock *MockUpdater) UpdateFromFile(filePath string) (string, error)
- type MockUpdater_Expecter
- func (_e *MockUpdater_Expecter) GetCurrentVersion() *MockUpdater_GetCurrentVersion_Call
- func (_e *MockUpdater_Expecter) GetLatestVersionString(ctx interface{}) *MockUpdater_GetLatestVersionString_Call
- func (_e *MockUpdater_Expecter) GetReleaseNotes(ctx interface{}, from interface{}, to interface{}) *MockUpdater_GetReleaseNotes_Call
- func (_e *MockUpdater_Expecter) Update(ctx interface{}) *MockUpdater_Update_Call
- func (_e *MockUpdater_Expecter) UpdateFromFile(filePath interface{}) *MockUpdater_UpdateFromFile_Call
- type MockUpdater_GetCurrentVersion_Call
- func (_c *MockUpdater_GetCurrentVersion_Call) Return(s string) *MockUpdater_GetCurrentVersion_Call
- func (_c *MockUpdater_GetCurrentVersion_Call) Run(run func()) *MockUpdater_GetCurrentVersion_Call
- func (_c *MockUpdater_GetCurrentVersion_Call) RunAndReturn(run func() string) *MockUpdater_GetCurrentVersion_Call
- type MockUpdater_GetLatestVersionString_Call
- func (_c *MockUpdater_GetLatestVersionString_Call) Return(s string, err error) *MockUpdater_GetLatestVersionString_Call
- func (_c *MockUpdater_GetLatestVersionString_Call) Run(run func(ctx context.Context)) *MockUpdater_GetLatestVersionString_Call
- func (_c *MockUpdater_GetLatestVersionString_Call) RunAndReturn(run func(ctx context.Context) (string, error)) *MockUpdater_GetLatestVersionString_Call
- type MockUpdater_GetReleaseNotes_Call
- func (_c *MockUpdater_GetReleaseNotes_Call) Return(s string, err error) *MockUpdater_GetReleaseNotes_Call
- func (_c *MockUpdater_GetReleaseNotes_Call) Run(run func(ctx context.Context, from string, to string)) *MockUpdater_GetReleaseNotes_Call
- func (_c *MockUpdater_GetReleaseNotes_Call) RunAndReturn(run func(ctx context.Context, from string, to string) (string, error)) *MockUpdater_GetReleaseNotes_Call
- type MockUpdater_UpdateFromFile_Call
- func (_c *MockUpdater_UpdateFromFile_Call) Return(s string, err error) *MockUpdater_UpdateFromFile_Call
- func (_c *MockUpdater_UpdateFromFile_Call) Run(run func(filePath string)) *MockUpdater_UpdateFromFile_Call
- func (_c *MockUpdater_UpdateFromFile_Call) RunAndReturn(run func(filePath string) (string, error)) *MockUpdater_UpdateFromFile_Call
- type MockUpdater_Update_Call
- func (_c *MockUpdater_Update_Call) Return(s string, err error) *MockUpdater_Update_Call
- func (_c *MockUpdater_Update_Call) Run(run func(ctx context.Context)) *MockUpdater_Update_Call
- func (_c *MockUpdater_Update_Call) RunAndReturn(run func(ctx context.Context) (string, error)) *MockUpdater_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockUpdater ¶
MockUpdater is an autogenerated mock type for the Updater type
func NewMockUpdater ¶
func NewMockUpdater(t interface {
mock.TestingT
Cleanup(func())
}) *MockUpdater
NewMockUpdater creates a new instance of MockUpdater. 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 (*MockUpdater) EXPECT ¶
func (_m *MockUpdater) EXPECT() *MockUpdater_Expecter
func (*MockUpdater) GetCurrentVersion ¶
func (_mock *MockUpdater) GetCurrentVersion() string
GetCurrentVersion provides a mock function for the type MockUpdater
func (*MockUpdater) GetLatestVersionString ¶
func (_mock *MockUpdater) GetLatestVersionString(ctx context.Context) (string, error)
GetLatestVersionString provides a mock function for the type MockUpdater
func (*MockUpdater) GetReleaseNotes ¶
func (_mock *MockUpdater) GetReleaseNotes(ctx context.Context, from string, to string) (string, error)
GetReleaseNotes provides a mock function for the type MockUpdater
func (*MockUpdater) Update ¶
func (_mock *MockUpdater) Update(ctx context.Context) (string, error)
Update provides a mock function for the type MockUpdater
func (*MockUpdater) UpdateFromFile ¶ added in v1.8.0
func (_mock *MockUpdater) UpdateFromFile(filePath string) (string, error)
UpdateFromFile provides a mock function for the type MockUpdater
type MockUpdater_Expecter ¶
type MockUpdater_Expecter struct {
// contains filtered or unexported fields
}
func (*MockUpdater_Expecter) GetCurrentVersion ¶
func (_e *MockUpdater_Expecter) GetCurrentVersion() *MockUpdater_GetCurrentVersion_Call
GetCurrentVersion is a helper method to define mock.On call
func (*MockUpdater_Expecter) GetLatestVersionString ¶
func (_e *MockUpdater_Expecter) GetLatestVersionString(ctx interface{}) *MockUpdater_GetLatestVersionString_Call
GetLatestVersionString is a helper method to define mock.On call
- ctx context.Context
func (*MockUpdater_Expecter) GetReleaseNotes ¶
func (_e *MockUpdater_Expecter) GetReleaseNotes(ctx interface{}, from interface{}, to interface{}) *MockUpdater_GetReleaseNotes_Call
GetReleaseNotes is a helper method to define mock.On call
- ctx context.Context
- from string
- to string
func (*MockUpdater_Expecter) Update ¶
func (_e *MockUpdater_Expecter) Update(ctx interface{}) *MockUpdater_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
func (*MockUpdater_Expecter) UpdateFromFile ¶ added in v1.8.0
func (_e *MockUpdater_Expecter) UpdateFromFile(filePath interface{}) *MockUpdater_UpdateFromFile_Call
UpdateFromFile is a helper method to define mock.On call
- filePath string
type MockUpdater_GetCurrentVersion_Call ¶
MockUpdater_GetCurrentVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCurrentVersion'
func (*MockUpdater_GetCurrentVersion_Call) Return ¶
func (_c *MockUpdater_GetCurrentVersion_Call) Return(s string) *MockUpdater_GetCurrentVersion_Call
func (*MockUpdater_GetCurrentVersion_Call) Run ¶
func (_c *MockUpdater_GetCurrentVersion_Call) Run(run func()) *MockUpdater_GetCurrentVersion_Call
func (*MockUpdater_GetCurrentVersion_Call) RunAndReturn ¶
func (_c *MockUpdater_GetCurrentVersion_Call) RunAndReturn(run func() string) *MockUpdater_GetCurrentVersion_Call
type MockUpdater_GetLatestVersionString_Call ¶
MockUpdater_GetLatestVersionString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestVersionString'
func (*MockUpdater_GetLatestVersionString_Call) Return ¶
func (_c *MockUpdater_GetLatestVersionString_Call) Return(s string, err error) *MockUpdater_GetLatestVersionString_Call
func (*MockUpdater_GetLatestVersionString_Call) Run ¶
func (_c *MockUpdater_GetLatestVersionString_Call) Run(run func(ctx context.Context)) *MockUpdater_GetLatestVersionString_Call
func (*MockUpdater_GetLatestVersionString_Call) RunAndReturn ¶
func (_c *MockUpdater_GetLatestVersionString_Call) RunAndReturn(run func(ctx context.Context) (string, error)) *MockUpdater_GetLatestVersionString_Call
type MockUpdater_GetReleaseNotes_Call ¶
MockUpdater_GetReleaseNotes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReleaseNotes'
func (*MockUpdater_GetReleaseNotes_Call) Return ¶
func (_c *MockUpdater_GetReleaseNotes_Call) Return(s string, err error) *MockUpdater_GetReleaseNotes_Call
func (*MockUpdater_GetReleaseNotes_Call) Run ¶
func (_c *MockUpdater_GetReleaseNotes_Call) Run(run func(ctx context.Context, from string, to string)) *MockUpdater_GetReleaseNotes_Call
func (*MockUpdater_GetReleaseNotes_Call) RunAndReturn ¶
func (_c *MockUpdater_GetReleaseNotes_Call) RunAndReturn(run func(ctx context.Context, from string, to string) (string, error)) *MockUpdater_GetReleaseNotes_Call
type MockUpdater_UpdateFromFile_Call ¶ added in v1.8.0
MockUpdater_UpdateFromFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateFromFile'
func (*MockUpdater_UpdateFromFile_Call) Return ¶ added in v1.8.0
func (_c *MockUpdater_UpdateFromFile_Call) Return(s string, err error) *MockUpdater_UpdateFromFile_Call
func (*MockUpdater_UpdateFromFile_Call) Run ¶ added in v1.8.0
func (_c *MockUpdater_UpdateFromFile_Call) Run(run func(filePath string)) *MockUpdater_UpdateFromFile_Call
func (*MockUpdater_UpdateFromFile_Call) RunAndReturn ¶ added in v1.8.0
func (_c *MockUpdater_UpdateFromFile_Call) RunAndReturn(run func(filePath string) (string, error)) *MockUpdater_UpdateFromFile_Call
type MockUpdater_Update_Call ¶
MockUpdater_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockUpdater_Update_Call) Return ¶
func (_c *MockUpdater_Update_Call) Return(s string, err error) *MockUpdater_Update_Call
func (*MockUpdater_Update_Call) Run ¶
func (_c *MockUpdater_Update_Call) Run(run func(ctx context.Context)) *MockUpdater_Update_Call
func (*MockUpdater_Update_Call) RunAndReturn ¶
func (_c *MockUpdater_Update_Call) RunAndReturn(run func(ctx context.Context) (string, error)) *MockUpdater_Update_Call