mocks

package
v0.15.6 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObserverMock

type ObserverMock struct {
	mock.Mock
}

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

type ObserverMock_Add_Call struct {
	*mock.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 (*ObserverMock_Add_Call) Run

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

Start is a helper method to define mock.On call

type ObserverMock_Start_Call

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

Jump to

Keyboard shortcuts

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