mocks

package
v0.0.0-...-c3501bc Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func NewLogger

func NewLogger(t interface {
	mock.TestingT
	Cleanup(func())
}) *Logger

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

func (_m *Logger) Debugf(format string, v ...interface{})

Debugf provides a mock function with given fields: format, 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) Errorf

func (_m *Logger) Errorf(format string, v ...interface{})

Errorf provides a mock function with given fields: format, v

func (*Logger) Fatal

func (_m *Logger) Fatal(v ...interface{})

Fatal provides a mock function with given fields: v

func (*Logger) Fatalf

func (_m *Logger) Fatalf(format string, v ...interface{})

Fatalf provides a mock function with given fields: format, v

func (*Logger) Info

func (_m *Logger) Info(v ...interface{})

Info provides a mock function with given fields: v

func (*Logger) Infof

func (_m *Logger) Infof(format string, v ...interface{})

Infof provides a mock function with given fields: format, v

func (*Logger) Warning

func (_m *Logger) Warning(v ...interface{})

Warning provides a mock function with given fields: v

func (*Logger) Warningf

func (_m *Logger) Warningf(format string, v ...interface{})

Warningf provides a mock function with given fields: format, v

type Logger_Debug_Call

type Logger_Debug_Call struct {
	*mock.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

type Logger_Debugf_Call struct {
	*mock.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

type Logger_Error_Call struct {
	*mock.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

type Logger_Errorf_Call struct {
	*mock.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

type Logger_Fatal_Call struct {
	*mock.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

type Logger_Fatalf_Call struct {
	*mock.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

type Logger_Info_Call struct {
	*mock.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

type Logger_Infof_Call struct {
	*mock.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

type Logger_Warning_Call struct {
	*mock.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 (*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

type Logger_Warningf_Call struct {
	*mock.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 (*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

type StatsBackend struct {
	mock.Mock
}

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:

func (*StatsBackend) Store

func (_m *StatsBackend) Store(domain string, questionType string, metadata stats.Metadata)

Store provides a mock function with given fields: domain, questionType, metadata

type StatsBackend_Expecter

type StatsBackend_Expecter struct {
	// contains filtered or unexported fields
}

func (*StatsBackend_Expecter) Ready

Ready is a helper method to define mock.On call

func (*StatsBackend_Expecter) Start

Start is a helper method to define mock.On call

func (*StatsBackend_Expecter) Stop

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

type StatsBackend_Ready_Call struct {
	*mock.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 (*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

type StatsBackend_Start_Call struct {
	*mock.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 (*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

type StatsBackend_Stop_Call struct {
	*mock.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 (*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

type StatsBackend_Store_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

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