Documentation
¶
Index ¶
- type Build
- type MockVersion
- type MockVersion_Arch_Call
- type MockVersion_BuildDate_Call
- type MockVersion_Commit_Call
- type MockVersion_Expecter
- func (_e *MockVersion_Expecter) Arch() *MockVersion_Arch_Call
- func (_e *MockVersion_Expecter) BuildDate() *MockVersion_BuildDate_Call
- func (_e *MockVersion_Expecter) Commit() *MockVersion_Commit_Call
- func (_e *MockVersion_Expecter) Os() *MockVersion_Os_Call
- func (_e *MockVersion_Expecter) Version() *MockVersion_Version_Call
- type MockVersion_Os_Call
- type MockVersion_Version_Call
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockVersion ¶
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) Arch ¶
func (_mock *MockVersion) Arch() string
Arch provides a mock function for the type MockVersion
func (*MockVersion) BuildDate ¶
func (_mock *MockVersion) BuildDate() string
BuildDate provides a mock function for the type MockVersion
func (*MockVersion) Commit ¶
func (_mock *MockVersion) Commit() string
Commit provides a mock function for the type MockVersion
func (*MockVersion) EXPECT ¶
func (_m *MockVersion) EXPECT() *MockVersion_Expecter
func (*MockVersion) Os ¶
func (_mock *MockVersion) Os() string
Os provides a mock function for the type MockVersion
func (*MockVersion) Version ¶
func (_mock *MockVersion) Version() string
Version provides a mock function for the type MockVersion
type MockVersion_Arch_Call ¶
MockVersion_Arch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Arch'
func (*MockVersion_Arch_Call) Return ¶
func (_c *MockVersion_Arch_Call) Return(s string) *MockVersion_Arch_Call
func (*MockVersion_Arch_Call) Run ¶
func (_c *MockVersion_Arch_Call) Run(run func()) *MockVersion_Arch_Call
func (*MockVersion_Arch_Call) RunAndReturn ¶
func (_c *MockVersion_Arch_Call) RunAndReturn(run func() string) *MockVersion_Arch_Call
type MockVersion_BuildDate_Call ¶
MockVersion_BuildDate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildDate'
func (*MockVersion_BuildDate_Call) Return ¶
func (_c *MockVersion_BuildDate_Call) Return(s string) *MockVersion_BuildDate_Call
func (*MockVersion_BuildDate_Call) Run ¶
func (_c *MockVersion_BuildDate_Call) Run(run func()) *MockVersion_BuildDate_Call
func (*MockVersion_BuildDate_Call) RunAndReturn ¶
func (_c *MockVersion_BuildDate_Call) RunAndReturn(run func() string) *MockVersion_BuildDate_Call
type MockVersion_Commit_Call ¶
MockVersion_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*MockVersion_Commit_Call) Return ¶
func (_c *MockVersion_Commit_Call) Return(s string) *MockVersion_Commit_Call
func (*MockVersion_Commit_Call) Run ¶
func (_c *MockVersion_Commit_Call) Run(run func()) *MockVersion_Commit_Call
func (*MockVersion_Commit_Call) RunAndReturn ¶
func (_c *MockVersion_Commit_Call) RunAndReturn(run func() string) *MockVersion_Commit_Call
type MockVersion_Expecter ¶
type MockVersion_Expecter struct {
// contains filtered or unexported fields
}
func (*MockVersion_Expecter) Arch ¶
func (_e *MockVersion_Expecter) Arch() *MockVersion_Arch_Call
Arch is a helper method to define mock.On call
func (*MockVersion_Expecter) BuildDate ¶
func (_e *MockVersion_Expecter) BuildDate() *MockVersion_BuildDate_Call
BuildDate is a helper method to define mock.On call
func (*MockVersion_Expecter) Commit ¶
func (_e *MockVersion_Expecter) Commit() *MockVersion_Commit_Call
Commit is a helper method to define mock.On call
func (*MockVersion_Expecter) Os ¶
func (_e *MockVersion_Expecter) Os() *MockVersion_Os_Call
Os is a helper method to define mock.On call
func (*MockVersion_Expecter) Version ¶
func (_e *MockVersion_Expecter) Version() *MockVersion_Version_Call
Version is a helper method to define mock.On call
type MockVersion_Os_Call ¶
MockVersion_Os_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Os'
func (*MockVersion_Os_Call) Return ¶
func (_c *MockVersion_Os_Call) Return(s string) *MockVersion_Os_Call
func (*MockVersion_Os_Call) Run ¶
func (_c *MockVersion_Os_Call) Run(run func()) *MockVersion_Os_Call
func (*MockVersion_Os_Call) RunAndReturn ¶
func (_c *MockVersion_Os_Call) RunAndReturn(run func() string) *MockVersion_Os_Call
type MockVersion_Version_Call ¶
MockVersion_Version_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Version'
func (*MockVersion_Version_Call) Return ¶
func (_c *MockVersion_Version_Call) Return(s string) *MockVersion_Version_Call
func (*MockVersion_Version_Call) Run ¶
func (_c *MockVersion_Version_Call) Run(run func()) *MockVersion_Version_Call
func (*MockVersion_Version_Call) RunAndReturn ¶
func (_c *MockVersion_Version_Call) RunAndReturn(run func() string) *MockVersion_Version_Call