mocks

package
v0.14.2-alpha Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerMock

type ServerMock struct {
	mock.Mock
}

ServerMock is an autogenerated mock type for the Server type

func NewServerMock

func NewServerMock(t mockConstructorTestingTNewServerMock) *ServerMock

NewServerMock creates a new instance of ServerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ServerMock) EXPECT

func (_m *ServerMock) EXPECT() *ServerMock_Expecter

func (*ServerMock) Serve

func (_m *ServerMock) Serve(l net.Listener) error

Serve provides a mock function with given fields: l

func (*ServerMock) Shutdown

func (_m *ServerMock) Shutdown(ctx context.Context) error

Shutdown provides a mock function with given fields: ctx

type ServerMock_Expecter

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

func (*ServerMock_Expecter) Serve

func (_e *ServerMock_Expecter) Serve(l interface{}) *ServerMock_Serve_Call

Serve is a helper method to define mock.On call

  • l net.Listener

func (*ServerMock_Expecter) Shutdown

func (_e *ServerMock_Expecter) Shutdown(ctx interface{}) *ServerMock_Shutdown_Call

Shutdown is a helper method to define mock.On call

  • ctx context.Context

type ServerMock_Serve_Call

type ServerMock_Serve_Call struct {
	*mock.Call
}

ServerMock_Serve_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Serve'

func (*ServerMock_Serve_Call) Return

func (*ServerMock_Serve_Call) Run

func (*ServerMock_Serve_Call) RunAndReturn

func (_c *ServerMock_Serve_Call) RunAndReturn(run func(net.Listener) error) *ServerMock_Serve_Call

type ServerMock_Shutdown_Call

type ServerMock_Shutdown_Call struct {
	*mock.Call
}

ServerMock_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'

func (*ServerMock_Shutdown_Call) Return

func (*ServerMock_Shutdown_Call) Run

func (*ServerMock_Shutdown_Call) RunAndReturn

Jump to

Keyboard shortcuts

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