Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObserverMock ¶
ObserverMock is an autogenerated mock type for the Observer type
func NewObserverMock ¶
func NewObserverMock(t interface { mock.TestingT Cleanup(func()) }) *ObserverMock
NewObserverMock creates a new instance of ObserverMock. 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 (*ObserverMock) Add ¶
func (_m *ObserverMock) Add(sup certificate.Supplier)
Add provides a mock function with given fields: sup
func (*ObserverMock) EXPECT ¶
func (_m *ObserverMock) EXPECT() *ObserverMock_Expecter
func (*ObserverMock) Start ¶
func (_m *ObserverMock) Start() error
Start provides a mock function with given fields:
type ObserverMock_Add_Call ¶
ObserverMock_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*ObserverMock_Add_Call) Return ¶
func (_c *ObserverMock_Add_Call) Return() *ObserverMock_Add_Call
func (*ObserverMock_Add_Call) Run ¶
func (_c *ObserverMock_Add_Call) Run(run func(sup certificate.Supplier)) *ObserverMock_Add_Call
func (*ObserverMock_Add_Call) RunAndReturn ¶
func (_c *ObserverMock_Add_Call) RunAndReturn(run func(certificate.Supplier)) *ObserverMock_Add_Call
type ObserverMock_Expecter ¶
type ObserverMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ObserverMock_Expecter) Add ¶
func (_e *ObserverMock_Expecter) Add(sup interface{}) *ObserverMock_Add_Call
Add is a helper method to define mock.On call
- sup certificate.Supplier
func (*ObserverMock_Expecter) Start ¶
func (_e *ObserverMock_Expecter) Start() *ObserverMock_Start_Call
Start is a helper method to define mock.On call
type ObserverMock_Start_Call ¶
ObserverMock_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*ObserverMock_Start_Call) Return ¶
func (_c *ObserverMock_Start_Call) Return(_a0 error) *ObserverMock_Start_Call
func (*ObserverMock_Start_Call) Run ¶
func (_c *ObserverMock_Start_Call) Run(run func()) *ObserverMock_Start_Call
func (*ObserverMock_Start_Call) RunAndReturn ¶
func (_c *ObserverMock_Start_Call) RunAndReturn(run func() error) *ObserverMock_Start_Call