Documentation ¶
Overview ¶
Package mock_timelib is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) AddTime(origin time.Time, adder time.Duration) time.Time
- func (m *MockInterface) ConvertFromString(timeFormat, timeString string) (time.Time, error)
- func (m *MockInterface) ConvertToString(timeFormat string, timeParam time.Time) string
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) GetCurrentTime() time.Time
- func (m *MockInterface) GetFirstDayOfTheMonth(year int, month time.Month) time.Time
- func (m *MockInterface) GetLastDayOfTheMonth(year int, month time.Month) time.Time
- func (m *MockInterface) GetTimeInLocation(locationParam timelib.Location, timeParam time.Time) (time.Time, error)
- func (m *MockInterface) SubstractTime(origin, deductor time.Time) time.Duration
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) AddTime(origin, adder any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ConvertFromString(timeFormat, timeString any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ConvertToString(timeFormat, timeParam any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetCurrentTime() *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetFirstDayOfTheMonth(year, month any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetLastDayOfTheMonth(year, month any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetTimeInLocation(locationParam, timeParam any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SubstractTime(origin, deductor any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) ConvertFromString ¶
func (m *MockInterface) ConvertFromString(timeFormat, timeString string) (time.Time, error)
ConvertFromString mocks base method.
func (*MockInterface) ConvertToString ¶
func (m *MockInterface) ConvertToString(timeFormat string, timeParam time.Time) string
ConvertToString mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) GetCurrentTime ¶
func (m *MockInterface) GetCurrentTime() time.Time
GetCurrentTime mocks base method.
func (*MockInterface) GetFirstDayOfTheMonth ¶
GetFirstDayOfTheMonth mocks base method.
func (*MockInterface) GetLastDayOfTheMonth ¶
GetLastDayOfTheMonth mocks base method.
func (*MockInterface) GetTimeInLocation ¶
func (m *MockInterface) GetTimeInLocation(locationParam timelib.Location, timeParam time.Time) (time.Time, error)
GetTimeInLocation mocks base method.
func (*MockInterface) SubstractTime ¶
func (m *MockInterface) SubstractTime(origin, deductor time.Time) time.Duration
SubstractTime mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) AddTime ¶
func (mr *MockInterfaceMockRecorder) AddTime(origin, adder any) *gomock.Call
AddTime indicates an expected call of AddTime.
func (*MockInterfaceMockRecorder) ConvertFromString ¶
func (mr *MockInterfaceMockRecorder) ConvertFromString(timeFormat, timeString any) *gomock.Call
ConvertFromString indicates an expected call of ConvertFromString.
func (*MockInterfaceMockRecorder) ConvertToString ¶
func (mr *MockInterfaceMockRecorder) ConvertToString(timeFormat, timeParam any) *gomock.Call
ConvertToString indicates an expected call of ConvertToString.
func (*MockInterfaceMockRecorder) GetCurrentTime ¶
func (mr *MockInterfaceMockRecorder) GetCurrentTime() *gomock.Call
GetCurrentTime indicates an expected call of GetCurrentTime.
func (*MockInterfaceMockRecorder) GetFirstDayOfTheMonth ¶
func (mr *MockInterfaceMockRecorder) GetFirstDayOfTheMonth(year, month any) *gomock.Call
GetFirstDayOfTheMonth indicates an expected call of GetFirstDayOfTheMonth.
func (*MockInterfaceMockRecorder) GetLastDayOfTheMonth ¶
func (mr *MockInterfaceMockRecorder) GetLastDayOfTheMonth(year, month any) *gomock.Call
GetLastDayOfTheMonth indicates an expected call of GetLastDayOfTheMonth.
func (*MockInterfaceMockRecorder) GetTimeInLocation ¶
func (mr *MockInterfaceMockRecorder) GetTimeInLocation(locationParam, timeParam any) *gomock.Call
GetTimeInLocation indicates an expected call of GetTimeInLocation.
func (*MockInterfaceMockRecorder) SubstractTime ¶
func (mr *MockInterfaceMockRecorder) SubstractTime(origin, deductor any) *gomock.Call
SubstractTime indicates an expected call of SubstractTime.