update

package
v1.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUpdater

type MockUpdater struct {
	mock.Mock
}

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

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

type MockUpdater_GetCurrentVersion_Call struct {
	*mock.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 (*MockUpdater_GetCurrentVersion_Call) Run

func (*MockUpdater_GetCurrentVersion_Call) RunAndReturn

type MockUpdater_GetLatestVersionString_Call

type MockUpdater_GetLatestVersionString_Call struct {
	*mock.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 (*MockUpdater_GetLatestVersionString_Call) Run

func (*MockUpdater_GetLatestVersionString_Call) RunAndReturn

type MockUpdater_GetReleaseNotes_Call

type MockUpdater_GetReleaseNotes_Call struct {
	*mock.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 (*MockUpdater_GetReleaseNotes_Call) Run

func (*MockUpdater_GetReleaseNotes_Call) RunAndReturn

type MockUpdater_UpdateFromFile_Call added in v1.8.0

type MockUpdater_UpdateFromFile_Call struct {
	*mock.Call
}

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 (*MockUpdater_UpdateFromFile_Call) Run added in v1.8.0

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

type MockUpdater_Update_Call struct {
	*mock.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 (*MockUpdater_Update_Call) Run

func (*MockUpdater_Update_Call) RunAndReturn

func (_c *MockUpdater_Update_Call) RunAndReturn(run func(ctx context.Context) (string, error)) *MockUpdater_Update_Call

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL