Documentation
¶
Index ¶
- type MockVersion
- func (_mock *MockVersion) Compare(other string) int
- func (_m *MockVersion) EXPECT() *MockVersion_Expecter
- func (_mock *MockVersion) GetCommit() string
- func (_mock *MockVersion) GetDate() string
- func (_mock *MockVersion) GetVersion() string
- func (_mock *MockVersion) IsDevelopment() bool
- func (_mock *MockVersion) String() string
- type MockVersion_Compare_Call
- type MockVersion_Expecter
- func (_e *MockVersion_Expecter) Compare(other interface{}) *MockVersion_Compare_Call
- func (_e *MockVersion_Expecter) GetCommit() *MockVersion_GetCommit_Call
- func (_e *MockVersion_Expecter) GetDate() *MockVersion_GetDate_Call
- func (_e *MockVersion_Expecter) GetVersion() *MockVersion_GetVersion_Call
- func (_e *MockVersion_Expecter) IsDevelopment() *MockVersion_IsDevelopment_Call
- func (_e *MockVersion_Expecter) String() *MockVersion_String_Call
- type MockVersion_GetCommit_Call
- type MockVersion_GetDate_Call
- type MockVersion_GetVersion_Call
- type MockVersion_IsDevelopment_Call
- type MockVersion_String_Call
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) 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 ¶
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 (_c *MockVersion_Compare_Call) Return(n int) *MockVersion_Compare_Call
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 ¶
func (_e *MockVersion_Expecter) GetCommit() *MockVersion_GetCommit_Call
GetCommit is a helper method to define mock.On call
func (*MockVersion_Expecter) GetDate ¶
func (_e *MockVersion_Expecter) GetDate() *MockVersion_GetDate_Call
GetDate is a helper method to define mock.On call
func (*MockVersion_Expecter) GetVersion ¶
func (_e *MockVersion_Expecter) GetVersion() *MockVersion_GetVersion_Call
GetVersion is a helper method to define mock.On call
func (*MockVersion_Expecter) IsDevelopment ¶
func (_e *MockVersion_Expecter) IsDevelopment() *MockVersion_IsDevelopment_Call
IsDevelopment is a helper method to define mock.On call
func (*MockVersion_Expecter) String ¶
func (_e *MockVersion_Expecter) String() *MockVersion_String_Call
String is a helper method to define mock.On call
type MockVersion_GetCommit_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 (_c *MockVersion_GetCommit_Call) Return(s string) *MockVersion_GetCommit_Call
func (*MockVersion_GetCommit_Call) Run ¶
func (_c *MockVersion_GetCommit_Call) Run(run func()) *MockVersion_GetCommit_Call
func (*MockVersion_GetCommit_Call) RunAndReturn ¶
func (_c *MockVersion_GetCommit_Call) RunAndReturn(run func() string) *MockVersion_GetCommit_Call
type MockVersion_GetDate_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 (_c *MockVersion_GetDate_Call) Return(s string) *MockVersion_GetDate_Call
func (*MockVersion_GetDate_Call) Run ¶
func (_c *MockVersion_GetDate_Call) Run(run func()) *MockVersion_GetDate_Call
func (*MockVersion_GetDate_Call) RunAndReturn ¶
func (_c *MockVersion_GetDate_Call) RunAndReturn(run func() string) *MockVersion_GetDate_Call
type MockVersion_GetVersion_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 (_c *MockVersion_GetVersion_Call) Return(s string) *MockVersion_GetVersion_Call
func (*MockVersion_GetVersion_Call) Run ¶
func (_c *MockVersion_GetVersion_Call) Run(run func()) *MockVersion_GetVersion_Call
func (*MockVersion_GetVersion_Call) RunAndReturn ¶
func (_c *MockVersion_GetVersion_Call) RunAndReturn(run func() string) *MockVersion_GetVersion_Call
type MockVersion_IsDevelopment_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 (_c *MockVersion_IsDevelopment_Call) Return(b bool) *MockVersion_IsDevelopment_Call
func (*MockVersion_IsDevelopment_Call) Run ¶
func (_c *MockVersion_IsDevelopment_Call) Run(run func()) *MockVersion_IsDevelopment_Call
func (*MockVersion_IsDevelopment_Call) RunAndReturn ¶
func (_c *MockVersion_IsDevelopment_Call) RunAndReturn(run func() bool) *MockVersion_IsDevelopment_Call
type MockVersion_String_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 (_c *MockVersion_String_Call) Return(s string) *MockVersion_String_Call
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