Documentation ¶
Overview ¶
Package clock provides the system clock.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
MockInterface is an autogenerated mock type for the Interface type
func NewMockInterface ¶
func NewMockInterface(t mockConstructorTestingTNewMockInterface) *MockInterface
NewMockInterface creates a new instance of MockInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockInterface) EXPECT ¶
func (_m *MockInterface) EXPECT() *MockInterface_Expecter
func (*MockInterface) Now ¶
func (_m *MockInterface) Now() time.Time
Now provides a mock function with given fields:
type MockInterface_Expecter ¶
type MockInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInterface_Expecter) Now ¶
func (_e *MockInterface_Expecter) Now() *MockInterface_Now_Call
Now is a helper method to define mock.On call
type MockInterface_Now_Call ¶
MockInterface_Now_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Now'
func (*MockInterface_Now_Call) Return ¶
func (_c *MockInterface_Now_Call) Return(_a0 time.Time) *MockInterface_Now_Call
func (*MockInterface_Now_Call) Run ¶
func (_c *MockInterface_Now_Call) Run(run func()) *MockInterface_Now_Call
Click to show internal directories.
Click to hide internal directories.