Documentation
¶
Index ¶
- type MockParser
- type MockParser_Expecter
- type MockParser_Parse_Call
- func (_c *MockParser_Parse_Call) Return(extendable *openapi.Extendable[openapi.OpenAPI], err error) *MockParser_Parse_Call
- func (_c *MockParser_Parse_Call) Run(run func()) *MockParser_Parse_Call
- func (_c *MockParser_Parse_Call) RunAndReturn(run func() (*openapi.Extendable[openapi.OpenAPI], error)) *MockParser_Parse_Call
- type Parser
- type ParserOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockParser ¶
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 ¶
func (_e *MockParser_Expecter) Parse() *MockParser_Parse_Call
Parse is a helper method to define mock.On call
type MockParser_Parse_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 (_c *MockParser_Parse_Call) Return(extendable *openapi.Extendable[openapi.OpenAPI], err error) *MockParser_Parse_Call
func (*MockParser_Parse_Call) Run ¶
func (_c *MockParser_Parse_Call) Run(run func()) *MockParser_Parse_Call
func (*MockParser_Parse_Call) RunAndReturn ¶
func (_c *MockParser_Parse_Call) RunAndReturn(run func() (*openapi.Extendable[openapi.OpenAPI], error)) *MockParser_Parse_Call
type ParserOption ¶
type ParserOption func(*parser)
func WithOperationRegistry ¶
func WithOperationRegistry(operationRegistry operation.Registry) ParserOption
func WithSpecRegistry ¶
func WithSpecRegistry(specRegistry spec.Registry) ParserOption
func WithValidatorRegistry ¶
func WithValidatorRegistry(validatorRegistry validator.Registry) ParserOption
Click to show internal directories.
Click to hide internal directories.