version

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockVersion

type MockVersion struct {
	mock.Mock
}

MockVersion is an autogenerated mock type for the Version type

func NewMockVersion

func NewMockVersion(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockVersion

NewMockVersion creates a new instance of MockVersion. 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 (*MockVersion) Compare

func (_mock *MockVersion) Compare(other string) int

Compare provides a mock function for the type MockVersion

func (*MockVersion) EXPECT

func (_m *MockVersion) EXPECT() *MockVersion_Expecter

func (*MockVersion) GetCommit

func (_mock *MockVersion) GetCommit() string

GetCommit provides a mock function for the type MockVersion

func (*MockVersion) GetDate

func (_mock *MockVersion) GetDate() string

GetDate provides a mock function for the type MockVersion

func (*MockVersion) GetVersion

func (_mock *MockVersion) GetVersion() string

GetVersion provides a mock function for the type MockVersion

func (*MockVersion) IsDevelopment

func (_mock *MockVersion) IsDevelopment() bool

IsDevelopment provides a mock function for the type MockVersion

func (*MockVersion) String

func (_mock *MockVersion) String() string

String provides a mock function for the type MockVersion

type MockVersion_Compare_Call

type MockVersion_Compare_Call struct {
	*mock.Call
}

MockVersion_Compare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Compare'

func (*MockVersion_Compare_Call) Return

func (*MockVersion_Compare_Call) Run

func (_c *MockVersion_Compare_Call) Run(run func(other string)) *MockVersion_Compare_Call

func (*MockVersion_Compare_Call) RunAndReturn

func (_c *MockVersion_Compare_Call) RunAndReturn(run func(other string) int) *MockVersion_Compare_Call

type MockVersion_Expecter

type MockVersion_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockVersion_Expecter) Compare

func (_e *MockVersion_Expecter) Compare(other interface{}) *MockVersion_Compare_Call

Compare is a helper method to define mock.On call

  • other string

func (*MockVersion_Expecter) GetCommit

GetCommit is a helper method to define mock.On call

func (*MockVersion_Expecter) GetDate

GetDate is a helper method to define mock.On call

func (*MockVersion_Expecter) GetVersion

GetVersion is a helper method to define mock.On call

func (*MockVersion_Expecter) IsDevelopment

IsDevelopment is a helper method to define mock.On call

func (*MockVersion_Expecter) String

String is a helper method to define mock.On call

type MockVersion_GetCommit_Call

type MockVersion_GetCommit_Call struct {
	*mock.Call
}

MockVersion_GetCommit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCommit'

func (*MockVersion_GetCommit_Call) Return

func (*MockVersion_GetCommit_Call) Run

func (*MockVersion_GetCommit_Call) RunAndReturn

func (_c *MockVersion_GetCommit_Call) RunAndReturn(run func() string) *MockVersion_GetCommit_Call

type MockVersion_GetDate_Call

type MockVersion_GetDate_Call struct {
	*mock.Call
}

MockVersion_GetDate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDate'

func (*MockVersion_GetDate_Call) Return

func (*MockVersion_GetDate_Call) Run

func (*MockVersion_GetDate_Call) RunAndReturn

func (_c *MockVersion_GetDate_Call) RunAndReturn(run func() string) *MockVersion_GetDate_Call

type MockVersion_GetVersion_Call

type MockVersion_GetVersion_Call struct {
	*mock.Call
}

MockVersion_GetVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVersion'

func (*MockVersion_GetVersion_Call) Return

func (*MockVersion_GetVersion_Call) Run

func (*MockVersion_GetVersion_Call) RunAndReturn

func (_c *MockVersion_GetVersion_Call) RunAndReturn(run func() string) *MockVersion_GetVersion_Call

type MockVersion_IsDevelopment_Call

type MockVersion_IsDevelopment_Call struct {
	*mock.Call
}

MockVersion_IsDevelopment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsDevelopment'

func (*MockVersion_IsDevelopment_Call) Return

func (*MockVersion_IsDevelopment_Call) Run

func (*MockVersion_IsDevelopment_Call) RunAndReturn

type MockVersion_String_Call

type MockVersion_String_Call struct {
	*mock.Call
}

MockVersion_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'

func (*MockVersion_String_Call) Return

func (*MockVersion_String_Call) Run

func (_c *MockVersion_String_Call) Run(run func()) *MockVersion_String_Call

func (*MockVersion_String_Call) RunAndReturn

func (_c *MockVersion_String_Call) RunAndReturn(run func() string) *MockVersion_String_Call

Jump to

Keyboard shortcuts

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