mock_timelib

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_timelib is a generated GoMock package.

Index

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) AddTime

func (m *MockInterface) AddTime(origin time.Time, adder time.Duration) time.Time

AddTime mocks base method.

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

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

func (m *MockInterface) GetFirstDayOfTheMonth(year int, month time.Month) time.Time

GetFirstDayOfTheMonth mocks base method.

func (*MockInterface) GetLastDayOfTheMonth

func (m *MockInterface) GetLastDayOfTheMonth(year int, month time.Month) time.Time

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.

Jump to

Keyboard shortcuts

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