Documentation
¶
Index ¶
- type MockTimer
- type MockTimer_Expecter
- type MockTimer_GetTiming_Call
- func (_c *MockTimer_GetTiming_Call) Return(total time.Duration, stage time.Duration) *MockTimer_GetTiming_Call
- func (_c *MockTimer_GetTiming_Call) Run(run func()) *MockTimer_GetTiming_Call
- func (_c *MockTimer_GetTiming_Call) RunAndReturn(run func() (time.Duration, time.Duration)) *MockTimer_GetTiming_Call
- type MockTimer_NewStage_Call
- type MockTimer_Start_Call
- type MockTimer_Stop_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTimer ¶
MockTimer is an autogenerated mock type for the Timer type
func NewMockTimer ¶
NewMockTimer creates a new instance of MockTimer. 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 (*MockTimer) EXPECT ¶
func (_m *MockTimer) EXPECT() *MockTimer_Expecter
func (*MockTimer) NewStage ¶
func (_mock *MockTimer) NewStage()
NewStage provides a mock function for the type MockTimer
type MockTimer_Expecter ¶
type MockTimer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTimer_Expecter) GetTiming ¶
func (_e *MockTimer_Expecter) GetTiming() *MockTimer_GetTiming_Call
GetTiming is a helper method to define mock.On call
func (*MockTimer_Expecter) NewStage ¶
func (_e *MockTimer_Expecter) NewStage() *MockTimer_NewStage_Call
NewStage is a helper method to define mock.On call
func (*MockTimer_Expecter) Start ¶
func (_e *MockTimer_Expecter) Start() *MockTimer_Start_Call
Start is a helper method to define mock.On call
func (*MockTimer_Expecter) Stop ¶
func (_e *MockTimer_Expecter) Stop() *MockTimer_Stop_Call
Stop is a helper method to define mock.On call
type MockTimer_GetTiming_Call ¶
MockTimer_GetTiming_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTiming'
func (*MockTimer_GetTiming_Call) Return ¶
func (_c *MockTimer_GetTiming_Call) Return(total time.Duration, stage time.Duration) *MockTimer_GetTiming_Call
func (*MockTimer_GetTiming_Call) Run ¶
func (_c *MockTimer_GetTiming_Call) Run(run func()) *MockTimer_GetTiming_Call
func (*MockTimer_GetTiming_Call) RunAndReturn ¶
func (_c *MockTimer_GetTiming_Call) RunAndReturn(run func() (time.Duration, time.Duration)) *MockTimer_GetTiming_Call
type MockTimer_NewStage_Call ¶
MockTimer_NewStage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewStage'
func (*MockTimer_NewStage_Call) Return ¶
func (_c *MockTimer_NewStage_Call) Return() *MockTimer_NewStage_Call
func (*MockTimer_NewStage_Call) Run ¶
func (_c *MockTimer_NewStage_Call) Run(run func()) *MockTimer_NewStage_Call
func (*MockTimer_NewStage_Call) RunAndReturn ¶
func (_c *MockTimer_NewStage_Call) RunAndReturn(run func()) *MockTimer_NewStage_Call
type MockTimer_Start_Call ¶
MockTimer_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*MockTimer_Start_Call) Return ¶
func (_c *MockTimer_Start_Call) Return() *MockTimer_Start_Call
func (*MockTimer_Start_Call) Run ¶
func (_c *MockTimer_Start_Call) Run(run func()) *MockTimer_Start_Call
func (*MockTimer_Start_Call) RunAndReturn ¶
func (_c *MockTimer_Start_Call) RunAndReturn(run func()) *MockTimer_Start_Call
type MockTimer_Stop_Call ¶
MockTimer_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*MockTimer_Stop_Call) Return ¶
func (_c *MockTimer_Stop_Call) Return() *MockTimer_Stop_Call
func (*MockTimer_Stop_Call) Run ¶
func (_c *MockTimer_Stop_Call) Run(run func()) *MockTimer_Stop_Call
func (*MockTimer_Stop_Call) RunAndReturn ¶
func (_c *MockTimer_Stop_Call) RunAndReturn(run func()) *MockTimer_Stop_Call