mocks

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	mock.Mock
}

Server is an autogenerated mock type for the Server type

func NewServer

func NewServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Server

NewServer creates a new instance of Server. 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 (*Server) EXPECT

func (_m *Server) EXPECT() *Server_Expecter

func (*Server) Start

func (_mock *Server) Start() error

Start provides a mock function for the type Server

func (*Server) Stop

func (_mock *Server) Stop() error

Stop provides a mock function for the type Server

type Server_Expecter

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

func (*Server_Expecter) Start

func (_e *Server_Expecter) Start() *Server_Start_Call

Start is a helper method to define mock.On call

func (*Server_Expecter) Stop

func (_e *Server_Expecter) Stop() *Server_Stop_Call

Stop is a helper method to define mock.On call

type Server_Start_Call

type Server_Start_Call struct {
	*mock.Call
}

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

func (*Server_Start_Call) Return

func (_c *Server_Start_Call) Return(err error) *Server_Start_Call

func (*Server_Start_Call) Run

func (_c *Server_Start_Call) Run(run func()) *Server_Start_Call

func (*Server_Start_Call) RunAndReturn

func (_c *Server_Start_Call) RunAndReturn(run func() error) *Server_Start_Call

type Server_Stop_Call

type Server_Stop_Call struct {
	*mock.Call
}

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

func (*Server_Stop_Call) Return

func (_c *Server_Stop_Call) Return(err error) *Server_Stop_Call

func (*Server_Stop_Call) Run

func (_c *Server_Stop_Call) Run(run func()) *Server_Stop_Call

func (*Server_Stop_Call) RunAndReturn

func (_c *Server_Stop_Call) RunAndReturn(run func() error) *Server_Stop_Call

Jump to

Keyboard shortcuts

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