Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CurrentTimeProvider ¶
type CurrentTimeProvider struct{}
func (CurrentTimeProvider) Now ¶
func (tp CurrentTimeProvider) Now() time.Time
type MockTimeProvider ¶
MockTimeProvider is an autogenerated mock type for the TimeProvider type
func NewMockTimeProvider ¶
func NewMockTimeProvider(t interface {
mock.TestingT
Cleanup(func())
},
) *MockTimeProvider
NewMockTimeProvider creates a new instance of MockTimeProvider. 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 (*MockTimeProvider) Now ¶
func (_m *MockTimeProvider) Now() time.Time
Now provides a mock function with no fields
type TimeProvider ¶
Click to show internal directories.
Click to hide internal directories.