parsermocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockParser

type MockParser struct {
	mock.Mock
}

MockParser is an autogenerated mock type for the Parser type

func NewMockParser

func NewMockParser(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockParser

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

func (_m *MockParser) EXPECT() *MockParser_Expecter

func (*MockParser) Parse

func (_mock *MockParser) Parse() (*openapi.Extendable[openapi.OpenAPI], error)

Parse provides a mock function for the type MockParser

type MockParser_Expecter

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

func (*MockParser_Expecter) Parse

Parse is a helper method to define mock.On call

type MockParser_Parse_Call

type MockParser_Parse_Call struct {
	*mock.Call
}

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

func (*MockParser_Parse_Call) Return

func (*MockParser_Parse_Call) Run

func (_c *MockParser_Parse_Call) Run(run func()) *MockParser_Parse_Call

func (*MockParser_Parse_Call) RunAndReturn

Jump to

Keyboard shortcuts

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