mocks

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 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 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 added in v1.0.6

func (_m *Handler) EXPECT() *Handler_Expecter

func (*Handler) Health

func (_m *Handler) Health(c *gin.Context)

Health provides a mock function with given fields: c

type Handler_Expecter added in v1.0.6

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

func (*Handler_Expecter) Health added in v1.0.6

func (_e *Handler_Expecter) Health(c interface{}) *Handler_Health_Call

Health is a helper method to define mock.On call

  • c *gin.Context

type Handler_Health_Call added in v1.0.6

type Handler_Health_Call struct {
	*mock.Call
}

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

func (*Handler_Health_Call) Return added in v1.0.6

func (*Handler_Health_Call) Run added in v1.0.6

func (_c *Handler_Health_Call) Run(run func(c *gin.Context)) *Handler_Health_Call

func (*Handler_Health_Call) RunAndReturn added in v1.0.6

func (_c *Handler_Health_Call) RunAndReturn(run func(*gin.Context)) *Handler_Health_Call

Jump to

Keyboard shortcuts

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