Documentation ¶
Index ¶
- type Logger
- func (_m *Logger) Debug(v ...interface{})
- func (_m *Logger) Debugf(format string, v ...interface{})
- func (_m *Logger) EXPECT() *Logger_Expecter
- func (_m *Logger) Error(v ...interface{})
- func (_m *Logger) Errorf(format string, v ...interface{})
- func (_m *Logger) Fatal(v ...interface{})
- func (_m *Logger) Fatalf(format string, v ...interface{})
- func (_m *Logger) Info(v ...interface{})
- func (_m *Logger) Infof(format string, v ...interface{})
- func (_m *Logger) Warning(v ...interface{})
- func (_m *Logger) Warningf(format string, v ...interface{})
- type Logger_Debug_Call
- type Logger_Debugf_Call
- type Logger_Error_Call
- type Logger_Errorf_Call
- type Logger_Expecter
- func (_e *Logger_Expecter) Debug(v ...interface{}) *Logger_Debug_Call
- func (_e *Logger_Expecter) Debugf(format interface{}, v ...interface{}) *Logger_Debugf_Call
- func (_e *Logger_Expecter) Error(v ...interface{}) *Logger_Error_Call
- func (_e *Logger_Expecter) Errorf(format interface{}, v ...interface{}) *Logger_Errorf_Call
- func (_e *Logger_Expecter) Fatal(v ...interface{}) *Logger_Fatal_Call
- func (_e *Logger_Expecter) Fatalf(format interface{}, v ...interface{}) *Logger_Fatalf_Call
- func (_e *Logger_Expecter) Info(v ...interface{}) *Logger_Info_Call
- func (_e *Logger_Expecter) Infof(format interface{}, v ...interface{}) *Logger_Infof_Call
- func (_e *Logger_Expecter) Warning(v ...interface{}) *Logger_Warning_Call
- func (_e *Logger_Expecter) Warningf(format interface{}, v ...interface{}) *Logger_Warningf_Call
- type Logger_Fatal_Call
- type Logger_Fatalf_Call
- type Logger_Info_Call
- type Logger_Infof_Call
- type Logger_Warning_Call
- type Logger_Warningf_Call
- type StatsBackend
- type StatsBackend_Expecter
- func (_e *StatsBackend_Expecter) Ready() *StatsBackend_Ready_Call
- func (_e *StatsBackend_Expecter) Start() *StatsBackend_Start_Call
- func (_e *StatsBackend_Expecter) Stop() *StatsBackend_Stop_Call
- func (_e *StatsBackend_Expecter) Store(domain interface{}, questionType interface{}, metadata interface{}) *StatsBackend_Store_Call
- type StatsBackend_Ready_Call
- type StatsBackend_Start_Call
- type StatsBackend_Stop_Call
- type StatsBackend_Store_Call
- func (_c *StatsBackend_Store_Call) Return() *StatsBackend_Store_Call
- func (_c *StatsBackend_Store_Call) Run(run func(domain string, questionType string, metadata stats.Metadata)) *StatsBackend_Store_Call
- func (_c *StatsBackend_Store_Call) RunAndReturn(run func(string, string, stats.Metadata)) *StatsBackend_Store_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger is an autogenerated mock type for the Logger type
func NewLogger ¶
NewLogger creates a new instance of Logger. 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 (*Logger) Debug ¶
func (_m *Logger) Debug(v ...interface{})
Debug provides a mock function with given fields: v
func (*Logger) EXPECT ¶
func (_m *Logger) EXPECT() *Logger_Expecter
func (*Logger) Error ¶
func (_m *Logger) Error(v ...interface{})
Error provides a mock function with given fields: v
func (*Logger) Fatal ¶
func (_m *Logger) Fatal(v ...interface{})
Fatal provides a mock function with given fields: v
func (*Logger) Info ¶
func (_m *Logger) Info(v ...interface{})
Info provides a mock function with given fields: v
type Logger_Debug_Call ¶
Logger_Debug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Debug'
func (*Logger_Debug_Call) Return ¶
func (_c *Logger_Debug_Call) Return() *Logger_Debug_Call
func (*Logger_Debug_Call) Run ¶
func (_c *Logger_Debug_Call) Run(run func(v ...interface{})) *Logger_Debug_Call
func (*Logger_Debug_Call) RunAndReturn ¶
func (_c *Logger_Debug_Call) RunAndReturn(run func(...interface{})) *Logger_Debug_Call
type Logger_Debugf_Call ¶
Logger_Debugf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Debugf'
func (*Logger_Debugf_Call) Return ¶
func (_c *Logger_Debugf_Call) Return() *Logger_Debugf_Call
func (*Logger_Debugf_Call) Run ¶
func (_c *Logger_Debugf_Call) Run(run func(format string, v ...interface{})) *Logger_Debugf_Call
func (*Logger_Debugf_Call) RunAndReturn ¶
func (_c *Logger_Debugf_Call) RunAndReturn(run func(string, ...interface{})) *Logger_Debugf_Call
type Logger_Error_Call ¶
Logger_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'
func (*Logger_Error_Call) Return ¶
func (_c *Logger_Error_Call) Return() *Logger_Error_Call
func (*Logger_Error_Call) Run ¶
func (_c *Logger_Error_Call) Run(run func(v ...interface{})) *Logger_Error_Call
func (*Logger_Error_Call) RunAndReturn ¶
func (_c *Logger_Error_Call) RunAndReturn(run func(...interface{})) *Logger_Error_Call
type Logger_Errorf_Call ¶
Logger_Errorf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Errorf'
func (*Logger_Errorf_Call) Return ¶
func (_c *Logger_Errorf_Call) Return() *Logger_Errorf_Call
func (*Logger_Errorf_Call) Run ¶
func (_c *Logger_Errorf_Call) Run(run func(format string, v ...interface{})) *Logger_Errorf_Call
func (*Logger_Errorf_Call) RunAndReturn ¶
func (_c *Logger_Errorf_Call) RunAndReturn(run func(string, ...interface{})) *Logger_Errorf_Call
type Logger_Expecter ¶
type Logger_Expecter struct {
// contains filtered or unexported fields
}
func (*Logger_Expecter) Debug ¶
func (_e *Logger_Expecter) Debug(v ...interface{}) *Logger_Debug_Call
Debug is a helper method to define mock.On call
- v ...interface{}
func (*Logger_Expecter) Debugf ¶
func (_e *Logger_Expecter) Debugf(format interface{}, v ...interface{}) *Logger_Debugf_Call
Debugf is a helper method to define mock.On call
- format string
- v ...interface{}
func (*Logger_Expecter) Error ¶
func (_e *Logger_Expecter) Error(v ...interface{}) *Logger_Error_Call
Error is a helper method to define mock.On call
- v ...interface{}
func (*Logger_Expecter) Errorf ¶
func (_e *Logger_Expecter) Errorf(format interface{}, v ...interface{}) *Logger_Errorf_Call
Errorf is a helper method to define mock.On call
- format string
- v ...interface{}
func (*Logger_Expecter) Fatal ¶
func (_e *Logger_Expecter) Fatal(v ...interface{}) *Logger_Fatal_Call
Fatal is a helper method to define mock.On call
- v ...interface{}
func (*Logger_Expecter) Fatalf ¶
func (_e *Logger_Expecter) Fatalf(format interface{}, v ...interface{}) *Logger_Fatalf_Call
Fatalf is a helper method to define mock.On call
- format string
- v ...interface{}
func (*Logger_Expecter) Info ¶
func (_e *Logger_Expecter) Info(v ...interface{}) *Logger_Info_Call
Info is a helper method to define mock.On call
- v ...interface{}
func (*Logger_Expecter) Infof ¶
func (_e *Logger_Expecter) Infof(format interface{}, v ...interface{}) *Logger_Infof_Call
Infof is a helper method to define mock.On call
- format string
- v ...interface{}
func (*Logger_Expecter) Warning ¶
func (_e *Logger_Expecter) Warning(v ...interface{}) *Logger_Warning_Call
Warning is a helper method to define mock.On call
- v ...interface{}
func (*Logger_Expecter) Warningf ¶
func (_e *Logger_Expecter) Warningf(format interface{}, v ...interface{}) *Logger_Warningf_Call
Warningf is a helper method to define mock.On call
- format string
- v ...interface{}
type Logger_Fatal_Call ¶
Logger_Fatal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fatal'
func (*Logger_Fatal_Call) Return ¶
func (_c *Logger_Fatal_Call) Return() *Logger_Fatal_Call
func (*Logger_Fatal_Call) Run ¶
func (_c *Logger_Fatal_Call) Run(run func(v ...interface{})) *Logger_Fatal_Call
func (*Logger_Fatal_Call) RunAndReturn ¶
func (_c *Logger_Fatal_Call) RunAndReturn(run func(...interface{})) *Logger_Fatal_Call
type Logger_Fatalf_Call ¶
Logger_Fatalf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fatalf'
func (*Logger_Fatalf_Call) Return ¶
func (_c *Logger_Fatalf_Call) Return() *Logger_Fatalf_Call
func (*Logger_Fatalf_Call) Run ¶
func (_c *Logger_Fatalf_Call) Run(run func(format string, v ...interface{})) *Logger_Fatalf_Call
func (*Logger_Fatalf_Call) RunAndReturn ¶
func (_c *Logger_Fatalf_Call) RunAndReturn(run func(string, ...interface{})) *Logger_Fatalf_Call
type Logger_Info_Call ¶
Logger_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'
func (*Logger_Info_Call) Return ¶
func (_c *Logger_Info_Call) Return() *Logger_Info_Call
func (*Logger_Info_Call) Run ¶
func (_c *Logger_Info_Call) Run(run func(v ...interface{})) *Logger_Info_Call
func (*Logger_Info_Call) RunAndReturn ¶
func (_c *Logger_Info_Call) RunAndReturn(run func(...interface{})) *Logger_Info_Call
type Logger_Infof_Call ¶
Logger_Infof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Infof'
func (*Logger_Infof_Call) Return ¶
func (_c *Logger_Infof_Call) Return() *Logger_Infof_Call
func (*Logger_Infof_Call) Run ¶
func (_c *Logger_Infof_Call) Run(run func(format string, v ...interface{})) *Logger_Infof_Call
func (*Logger_Infof_Call) RunAndReturn ¶
func (_c *Logger_Infof_Call) RunAndReturn(run func(string, ...interface{})) *Logger_Infof_Call
type Logger_Warning_Call ¶
Logger_Warning_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Warning'
func (*Logger_Warning_Call) Return ¶
func (_c *Logger_Warning_Call) Return() *Logger_Warning_Call
func (*Logger_Warning_Call) Run ¶
func (_c *Logger_Warning_Call) Run(run func(v ...interface{})) *Logger_Warning_Call
func (*Logger_Warning_Call) RunAndReturn ¶
func (_c *Logger_Warning_Call) RunAndReturn(run func(...interface{})) *Logger_Warning_Call
type Logger_Warningf_Call ¶
Logger_Warningf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Warningf'
func (*Logger_Warningf_Call) Return ¶
func (_c *Logger_Warningf_Call) Return() *Logger_Warningf_Call
func (*Logger_Warningf_Call) Run ¶
func (_c *Logger_Warningf_Call) Run(run func(format string, v ...interface{})) *Logger_Warningf_Call
func (*Logger_Warningf_Call) RunAndReturn ¶
func (_c *Logger_Warningf_Call) RunAndReturn(run func(string, ...interface{})) *Logger_Warningf_Call
type StatsBackend ¶
StatsBackend is an autogenerated mock type for the StatsBackend type
func NewStatsBackend ¶
func NewStatsBackend(t interface { mock.TestingT Cleanup(func()) }) *StatsBackend
NewStatsBackend creates a new instance of StatsBackend. 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 (*StatsBackend) EXPECT ¶
func (_m *StatsBackend) EXPECT() *StatsBackend_Expecter
func (*StatsBackend) Ready ¶
func (_m *StatsBackend) Ready() bool
Ready provides a mock function with given fields:
func (*StatsBackend) Start ¶
func (_m *StatsBackend) Start() error
Start provides a mock function with given fields:
func (*StatsBackend) Stop ¶
func (_m *StatsBackend) Stop() error
Stop provides a mock function with given fields:
type StatsBackend_Expecter ¶
type StatsBackend_Expecter struct {
// contains filtered or unexported fields
}
func (*StatsBackend_Expecter) Ready ¶
func (_e *StatsBackend_Expecter) Ready() *StatsBackend_Ready_Call
Ready is a helper method to define mock.On call
func (*StatsBackend_Expecter) Start ¶
func (_e *StatsBackend_Expecter) Start() *StatsBackend_Start_Call
Start is a helper method to define mock.On call
func (*StatsBackend_Expecter) Stop ¶
func (_e *StatsBackend_Expecter) Stop() *StatsBackend_Stop_Call
Stop is a helper method to define mock.On call
func (*StatsBackend_Expecter) Store ¶
func (_e *StatsBackend_Expecter) Store(domain interface{}, questionType interface{}, metadata interface{}) *StatsBackend_Store_Call
Store is a helper method to define mock.On call
- domain string
- questionType string
- metadata stats.Metadata
type StatsBackend_Ready_Call ¶
StatsBackend_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*StatsBackend_Ready_Call) Return ¶
func (_c *StatsBackend_Ready_Call) Return(_a0 bool) *StatsBackend_Ready_Call
func (*StatsBackend_Ready_Call) Run ¶
func (_c *StatsBackend_Ready_Call) Run(run func()) *StatsBackend_Ready_Call
func (*StatsBackend_Ready_Call) RunAndReturn ¶
func (_c *StatsBackend_Ready_Call) RunAndReturn(run func() bool) *StatsBackend_Ready_Call
type StatsBackend_Start_Call ¶
StatsBackend_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*StatsBackend_Start_Call) Return ¶
func (_c *StatsBackend_Start_Call) Return(_a0 error) *StatsBackend_Start_Call
func (*StatsBackend_Start_Call) Run ¶
func (_c *StatsBackend_Start_Call) Run(run func()) *StatsBackend_Start_Call
func (*StatsBackend_Start_Call) RunAndReturn ¶
func (_c *StatsBackend_Start_Call) RunAndReturn(run func() error) *StatsBackend_Start_Call
type StatsBackend_Stop_Call ¶
StatsBackend_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*StatsBackend_Stop_Call) Return ¶
func (_c *StatsBackend_Stop_Call) Return(_a0 error) *StatsBackend_Stop_Call
func (*StatsBackend_Stop_Call) Run ¶
func (_c *StatsBackend_Stop_Call) Run(run func()) *StatsBackend_Stop_Call
func (*StatsBackend_Stop_Call) RunAndReturn ¶
func (_c *StatsBackend_Stop_Call) RunAndReturn(run func() error) *StatsBackend_Stop_Call
type StatsBackend_Store_Call ¶
StatsBackend_Store_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Store'
func (*StatsBackend_Store_Call) Return ¶
func (_c *StatsBackend_Store_Call) Return() *StatsBackend_Store_Call
func (*StatsBackend_Store_Call) Run ¶
func (_c *StatsBackend_Store_Call) Run(run func(domain string, questionType string, metadata stats.Metadata)) *StatsBackend_Store_Call
func (*StatsBackend_Store_Call) RunAndReturn ¶
func (_c *StatsBackend_Store_Call) RunAndReturn(run func(string, string, stats.Metadata)) *StatsBackend_Store_Call