mockrpcserver

package
v0.4.21 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	mock.Mock
}

Handler is an autogenerated mock type for the Handler type

func NewHandler

func NewHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *Handler

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

func (_m *Handler) EXPECT() *Handler_Expecter

func (*Handler) Register

func (_mock *Handler) Register(serveMux *http.ServeMux, handlerOptions []connect.HandlerOption)

Register provides a mock function for the type Handler

type Handler_Expecter

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

func (*Handler_Expecter) Register

func (_e *Handler_Expecter) Register(serveMux interface{}, handlerOptions interface{}) *Handler_Register_Call

Register is a helper method to define mock.On call

  • serveMux *http.ServeMux
  • handlerOptions []connect.HandlerOption

type Handler_Register_Call

type Handler_Register_Call struct {
	*mock.Call
}

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

func (*Handler_Register_Call) Return

func (*Handler_Register_Call) Run

func (_c *Handler_Register_Call) Run(run func(serveMux *http.ServeMux, handlerOptions []connect.HandlerOption)) *Handler_Register_Call

func (*Handler_Register_Call) RunAndReturn

func (_c *Handler_Register_Call) RunAndReturn(run func(serveMux *http.ServeMux, handlerOptions []connect.HandlerOption)) *Handler_Register_Call

Jump to

Keyboard shortcuts

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