mocks

package
v0.9.29 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtensionConfiguration

type ExtensionConfiguration struct {
	mock.Mock
}

ExtensionConfiguration is an autogenerated mock type for the ExtensionConfiguration type

func NewExtensionConfiguration

func NewExtensionConfiguration(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExtensionConfiguration

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

func (*ExtensionConfiguration) Validate

func (_m *ExtensionConfiguration) Validate(_a0 []byte, _a1 string) (string, *multierror.Error)

Validate provides a mock function with given fields: _a0, _a1

func (*ExtensionConfiguration) WithSchema

func (_m *ExtensionConfiguration) WithSchema(_a0 []byte) error

WithSchema provides a mock function with given fields: _a0

type ExtensionConfiguration_Expecter

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

func (*ExtensionConfiguration_Expecter) Validate

func (_e *ExtensionConfiguration_Expecter) Validate(_a0 interface{}, _a1 interface{}) *ExtensionConfiguration_Validate_Call

Validate is a helper method to define mock.On call

  • _a0 []byte
  • _a1 string

func (*ExtensionConfiguration_Expecter) WithSchema

WithSchema is a helper method to define mock.On call

  • _a0 []byte

type ExtensionConfiguration_Validate_Call

type ExtensionConfiguration_Validate_Call struct {
	*mock.Call
}

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

func (*ExtensionConfiguration_Validate_Call) Return

func (*ExtensionConfiguration_Validate_Call) Run

func (*ExtensionConfiguration_Validate_Call) RunAndReturn

type ExtensionConfiguration_WithSchema_Call

type ExtensionConfiguration_WithSchema_Call struct {
	*mock.Call
}

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

func (*ExtensionConfiguration_WithSchema_Call) Return

func (*ExtensionConfiguration_WithSchema_Call) Run

func (*ExtensionConfiguration_WithSchema_Call) RunAndReturn

type ResponseWriter

type ResponseWriter struct {
	mock.Mock
}

ResponseWriter is an autogenerated mock type for the ResponseWriter type

func NewResponseWriter

func NewResponseWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResponseWriter

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

func (*ResponseWriter) Header

func (_m *ResponseWriter) Header() http.Header

Header provides a mock function with no fields

func (*ResponseWriter) Write

func (_m *ResponseWriter) Write(_a0 []byte) (int, error)

Write provides a mock function with given fields: _a0

func (*ResponseWriter) WriteHeader

func (_m *ResponseWriter) WriteHeader(statusCode int)

WriteHeader provides a mock function with given fields: statusCode

type ResponseWriter_Expecter

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

func (*ResponseWriter_Expecter) Header

Header is a helper method to define mock.On call

func (*ResponseWriter_Expecter) Write

func (_e *ResponseWriter_Expecter) Write(_a0 interface{}) *ResponseWriter_Write_Call

Write is a helper method to define mock.On call

  • _a0 []byte

func (*ResponseWriter_Expecter) WriteHeader

func (_e *ResponseWriter_Expecter) WriteHeader(statusCode interface{}) *ResponseWriter_WriteHeader_Call

WriteHeader is a helper method to define mock.On call

  • statusCode int

type ResponseWriter_Header_Call

type ResponseWriter_Header_Call struct {
	*mock.Call
}

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

func (*ResponseWriter_Header_Call) Return

func (*ResponseWriter_Header_Call) Run

func (*ResponseWriter_Header_Call) RunAndReturn

func (_c *ResponseWriter_Header_Call) RunAndReturn(run func() http.Header) *ResponseWriter_Header_Call

type ResponseWriter_WriteHeader_Call

type ResponseWriter_WriteHeader_Call struct {
	*mock.Call
}

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

func (*ResponseWriter_WriteHeader_Call) Return

func (*ResponseWriter_WriteHeader_Call) Run

func (*ResponseWriter_WriteHeader_Call) RunAndReturn

type ResponseWriter_Write_Call

type ResponseWriter_Write_Call struct {
	*mock.Call
}

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

func (*ResponseWriter_Write_Call) Return

func (*ResponseWriter_Write_Call) Run

func (_c *ResponseWriter_Write_Call) Run(run func(_a0 []byte)) *ResponseWriter_Write_Call

func (*ResponseWriter_Write_Call) RunAndReturn

func (_c *ResponseWriter_Write_Call) RunAndReturn(run func([]byte) (int, error)) *ResponseWriter_Write_Call

Jump to

Keyboard shortcuts

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