Documentation
¶
Index ¶
- type MockDefinitionsCache
- func (_mock *MockDefinitionsCache) Definitions() map[string]*openapi.RefOrSpec[openapi.Schema]
- func (_m *MockDefinitionsCache) EXPECT() *MockDefinitionsCache_Expecter
- func (_mock *MockDefinitionsCache) Get(locator1 *locator.Locator) (*openapi.RefOrSpec[openapi.Schema], bool)
- func (_mock *MockDefinitionsCache) IsResolving(locator1 *locator.Locator) bool
- func (_mock *MockDefinitionsCache) MarkResolving(locator1 *locator.Locator)
- func (_mock *MockDefinitionsCache) Put(locator1 *locator.Locator, refOrSpec *openapi.RefOrSpec[openapi.Schema]) *openapi.RefOrSpec[openapi.Schema]
- type MockDefinitionsCache_Definitions_Call
- func (_c *MockDefinitionsCache_Definitions_Call) Return(stringToRefOrSpec map[string]*openapi.RefOrSpec[openapi.Schema]) *MockDefinitionsCache_Definitions_Call
- func (_c *MockDefinitionsCache_Definitions_Call) Run(run func()) *MockDefinitionsCache_Definitions_Call
- func (_c *MockDefinitionsCache_Definitions_Call) RunAndReturn(run func() map[string]*openapi.RefOrSpec[openapi.Schema]) *MockDefinitionsCache_Definitions_Call
- type MockDefinitionsCache_Expecter
- func (_e *MockDefinitionsCache_Expecter) Definitions() *MockDefinitionsCache_Definitions_Call
- func (_e *MockDefinitionsCache_Expecter) Get(locator1 interface{}) *MockDefinitionsCache_Get_Call
- func (_e *MockDefinitionsCache_Expecter) IsResolving(locator1 interface{}) *MockDefinitionsCache_IsResolving_Call
- func (_e *MockDefinitionsCache_Expecter) MarkResolving(locator1 interface{}) *MockDefinitionsCache_MarkResolving_Call
- func (_e *MockDefinitionsCache_Expecter) Put(locator1 interface{}, refOrSpec interface{}) *MockDefinitionsCache_Put_Call
- type MockDefinitionsCache_Get_Call
- func (_c *MockDefinitionsCache_Get_Call) Return(refOrSpec *openapi.RefOrSpec[openapi.Schema], b bool) *MockDefinitionsCache_Get_Call
- func (_c *MockDefinitionsCache_Get_Call) Run(run func(locator1 *locator.Locator)) *MockDefinitionsCache_Get_Call
- func (_c *MockDefinitionsCache_Get_Call) RunAndReturn(run func(locator1 *locator.Locator) (*openapi.RefOrSpec[openapi.Schema], bool)) *MockDefinitionsCache_Get_Call
- type MockDefinitionsCache_IsResolving_Call
- func (_c *MockDefinitionsCache_IsResolving_Call) Return(b bool) *MockDefinitionsCache_IsResolving_Call
- func (_c *MockDefinitionsCache_IsResolving_Call) Run(run func(locator1 *locator.Locator)) *MockDefinitionsCache_IsResolving_Call
- func (_c *MockDefinitionsCache_IsResolving_Call) RunAndReturn(run func(locator1 *locator.Locator) bool) *MockDefinitionsCache_IsResolving_Call
- type MockDefinitionsCache_MarkResolving_Call
- func (_c *MockDefinitionsCache_MarkResolving_Call) Return() *MockDefinitionsCache_MarkResolving_Call
- func (_c *MockDefinitionsCache_MarkResolving_Call) Run(run func(locator1 *locator.Locator)) *MockDefinitionsCache_MarkResolving_Call
- func (_c *MockDefinitionsCache_MarkResolving_Call) RunAndReturn(run func(locator1 *locator.Locator)) *MockDefinitionsCache_MarkResolving_Call
- type MockDefinitionsCache_Put_Call
- type MockParserCache
- type MockParserCache_Expecter
- type MockParserCache_Parse_Call
- func (_c *MockParserCache_Parse_Call) Return(file *ast.File, err error) *MockParserCache_Parse_Call
- func (_c *MockParserCache_Parse_Call) Run(run func(filename string)) *MockParserCache_Parse_Call
- func (_c *MockParserCache_Parse_Call) RunAndReturn(run func(filename string) (*ast.File, error)) *MockParserCache_Parse_Call
- type MockTypeDefCache
- type MockTypeDefCache_Expecter
- type MockTypeDefCache_Get_Call
- func (_c *MockTypeDefCache_Get_Call) Return(typeDef *cache.TypeDef, b bool) *MockTypeDefCache_Get_Call
- func (_c *MockTypeDefCache_Get_Call) Run(run func(pkgPath string, typeName string)) *MockTypeDefCache_Get_Call
- func (_c *MockTypeDefCache_Get_Call) RunAndReturn(run func(pkgPath string, typeName string) (*cache.TypeDef, bool)) *MockTypeDefCache_Get_Call
- type MockTypeDefCache_Load_Call
- func (_c *MockTypeDefCache_Load_Call) Return(err error) *MockTypeDefCache_Load_Call
- func (_c *MockTypeDefCache_Load_Call) Run(run func(ctx context.Context, pkgPath string)) *MockTypeDefCache_Load_Call
- func (_c *MockTypeDefCache_Load_Call) RunAndReturn(run func(ctx context.Context, pkgPath string) error) *MockTypeDefCache_Load_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDefinitionsCache ¶
MockDefinitionsCache is an autogenerated mock type for the DefinitionsCache type
func NewMockDefinitionsCache ¶
func NewMockDefinitionsCache(t interface {
mock.TestingT
Cleanup(func())
}) *MockDefinitionsCache
NewMockDefinitionsCache creates a new instance of MockDefinitionsCache. 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 (*MockDefinitionsCache) Definitions ¶
Definitions provides a mock function for the type MockDefinitionsCache
func (*MockDefinitionsCache) EXPECT ¶
func (_m *MockDefinitionsCache) EXPECT() *MockDefinitionsCache_Expecter
func (*MockDefinitionsCache) Get ¶
func (_mock *MockDefinitionsCache) Get(locator1 *locator.Locator) (*openapi.RefOrSpec[openapi.Schema], bool)
Get provides a mock function for the type MockDefinitionsCache
func (*MockDefinitionsCache) IsResolving ¶
func (_mock *MockDefinitionsCache) IsResolving(locator1 *locator.Locator) bool
IsResolving provides a mock function for the type MockDefinitionsCache
func (*MockDefinitionsCache) MarkResolving ¶
func (_mock *MockDefinitionsCache) MarkResolving(locator1 *locator.Locator)
MarkResolving provides a mock function for the type MockDefinitionsCache
type MockDefinitionsCache_Definitions_Call ¶
MockDefinitionsCache_Definitions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Definitions'
func (*MockDefinitionsCache_Definitions_Call) Return ¶
func (_c *MockDefinitionsCache_Definitions_Call) Return(stringToRefOrSpec map[string]*openapi.RefOrSpec[openapi.Schema]) *MockDefinitionsCache_Definitions_Call
func (*MockDefinitionsCache_Definitions_Call) Run ¶
func (_c *MockDefinitionsCache_Definitions_Call) Run(run func()) *MockDefinitionsCache_Definitions_Call
func (*MockDefinitionsCache_Definitions_Call) RunAndReturn ¶
func (_c *MockDefinitionsCache_Definitions_Call) RunAndReturn(run func() map[string]*openapi.RefOrSpec[openapi.Schema]) *MockDefinitionsCache_Definitions_Call
type MockDefinitionsCache_Expecter ¶
type MockDefinitionsCache_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDefinitionsCache_Expecter) Definitions ¶
func (_e *MockDefinitionsCache_Expecter) Definitions() *MockDefinitionsCache_Definitions_Call
Definitions is a helper method to define mock.On call
func (*MockDefinitionsCache_Expecter) Get ¶
func (_e *MockDefinitionsCache_Expecter) Get(locator1 interface{}) *MockDefinitionsCache_Get_Call
Get is a helper method to define mock.On call
- locator1 *locator.Locator
func (*MockDefinitionsCache_Expecter) IsResolving ¶
func (_e *MockDefinitionsCache_Expecter) IsResolving(locator1 interface{}) *MockDefinitionsCache_IsResolving_Call
IsResolving is a helper method to define mock.On call
- locator1 *locator.Locator
func (*MockDefinitionsCache_Expecter) MarkResolving ¶
func (_e *MockDefinitionsCache_Expecter) MarkResolving(locator1 interface{}) *MockDefinitionsCache_MarkResolving_Call
MarkResolving is a helper method to define mock.On call
- locator1 *locator.Locator
func (*MockDefinitionsCache_Expecter) Put ¶
func (_e *MockDefinitionsCache_Expecter) Put(locator1 interface{}, refOrSpec interface{}) *MockDefinitionsCache_Put_Call
Put is a helper method to define mock.On call
- locator1 *locator.Locator
- refOrSpec *openapi.RefOrSpec[openapi.Schema]
type MockDefinitionsCache_Get_Call ¶
MockDefinitionsCache_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockDefinitionsCache_Get_Call) Return ¶
func (_c *MockDefinitionsCache_Get_Call) Return(refOrSpec *openapi.RefOrSpec[openapi.Schema], b bool) *MockDefinitionsCache_Get_Call
func (*MockDefinitionsCache_Get_Call) Run ¶
func (_c *MockDefinitionsCache_Get_Call) Run(run func(locator1 *locator.Locator)) *MockDefinitionsCache_Get_Call
func (*MockDefinitionsCache_Get_Call) RunAndReturn ¶
func (_c *MockDefinitionsCache_Get_Call) RunAndReturn(run func(locator1 *locator.Locator) (*openapi.RefOrSpec[openapi.Schema], bool)) *MockDefinitionsCache_Get_Call
type MockDefinitionsCache_IsResolving_Call ¶
MockDefinitionsCache_IsResolving_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsResolving'
func (*MockDefinitionsCache_IsResolving_Call) Return ¶
func (_c *MockDefinitionsCache_IsResolving_Call) Return(b bool) *MockDefinitionsCache_IsResolving_Call
func (*MockDefinitionsCache_IsResolving_Call) Run ¶
func (_c *MockDefinitionsCache_IsResolving_Call) Run(run func(locator1 *locator.Locator)) *MockDefinitionsCache_IsResolving_Call
func (*MockDefinitionsCache_IsResolving_Call) RunAndReturn ¶
func (_c *MockDefinitionsCache_IsResolving_Call) RunAndReturn(run func(locator1 *locator.Locator) bool) *MockDefinitionsCache_IsResolving_Call
type MockDefinitionsCache_MarkResolving_Call ¶
MockDefinitionsCache_MarkResolving_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkResolving'
func (*MockDefinitionsCache_MarkResolving_Call) Return ¶
func (_c *MockDefinitionsCache_MarkResolving_Call) Return() *MockDefinitionsCache_MarkResolving_Call
func (*MockDefinitionsCache_MarkResolving_Call) Run ¶
func (_c *MockDefinitionsCache_MarkResolving_Call) Run(run func(locator1 *locator.Locator)) *MockDefinitionsCache_MarkResolving_Call
func (*MockDefinitionsCache_MarkResolving_Call) RunAndReturn ¶
func (_c *MockDefinitionsCache_MarkResolving_Call) RunAndReturn(run func(locator1 *locator.Locator)) *MockDefinitionsCache_MarkResolving_Call
type MockDefinitionsCache_Put_Call ¶
MockDefinitionsCache_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'
func (*MockDefinitionsCache_Put_Call) Return ¶
func (_c *MockDefinitionsCache_Put_Call) Return(refOrSpec1 *openapi.RefOrSpec[openapi.Schema]) *MockDefinitionsCache_Put_Call
func (*MockDefinitionsCache_Put_Call) Run ¶
func (_c *MockDefinitionsCache_Put_Call) Run(run func(locator1 *locator.Locator, refOrSpec *openapi.RefOrSpec[openapi.Schema])) *MockDefinitionsCache_Put_Call
func (*MockDefinitionsCache_Put_Call) RunAndReturn ¶
type MockParserCache ¶
MockParserCache is an autogenerated mock type for the ParserCache type
func NewMockParserCache ¶
func NewMockParserCache(t interface {
mock.TestingT
Cleanup(func())
}) *MockParserCache
NewMockParserCache creates a new instance of MockParserCache. 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 (*MockParserCache) EXPECT ¶
func (_m *MockParserCache) EXPECT() *MockParserCache_Expecter
type MockParserCache_Expecter ¶
type MockParserCache_Expecter struct {
// contains filtered or unexported fields
}
func (*MockParserCache_Expecter) Parse ¶
func (_e *MockParserCache_Expecter) Parse(filename interface{}) *MockParserCache_Parse_Call
Parse is a helper method to define mock.On call
- filename string
type MockParserCache_Parse_Call ¶
MockParserCache_Parse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Parse'
func (*MockParserCache_Parse_Call) Return ¶
func (_c *MockParserCache_Parse_Call) Return(file *ast.File, err error) *MockParserCache_Parse_Call
func (*MockParserCache_Parse_Call) Run ¶
func (_c *MockParserCache_Parse_Call) Run(run func(filename string)) *MockParserCache_Parse_Call
func (*MockParserCache_Parse_Call) RunAndReturn ¶
func (_c *MockParserCache_Parse_Call) RunAndReturn(run func(filename string) (*ast.File, error)) *MockParserCache_Parse_Call
type MockTypeDefCache ¶
MockTypeDefCache is an autogenerated mock type for the TypeDefCache type
func NewMockTypeDefCache ¶
func NewMockTypeDefCache(t interface {
mock.TestingT
Cleanup(func())
}) *MockTypeDefCache
NewMockTypeDefCache creates a new instance of MockTypeDefCache. 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 (*MockTypeDefCache) EXPECT ¶
func (_m *MockTypeDefCache) EXPECT() *MockTypeDefCache_Expecter
type MockTypeDefCache_Expecter ¶
type MockTypeDefCache_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTypeDefCache_Expecter) Get ¶
func (_e *MockTypeDefCache_Expecter) Get(pkgPath interface{}, typeName interface{}) *MockTypeDefCache_Get_Call
Get is a helper method to define mock.On call
- pkgPath string
- typeName string
func (*MockTypeDefCache_Expecter) Load ¶
func (_e *MockTypeDefCache_Expecter) Load(ctx interface{}, pkgPath interface{}) *MockTypeDefCache_Load_Call
Load is a helper method to define mock.On call
- ctx context.Context
- pkgPath string
type MockTypeDefCache_Get_Call ¶
MockTypeDefCache_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockTypeDefCache_Get_Call) Return ¶
func (_c *MockTypeDefCache_Get_Call) Return(typeDef *cache.TypeDef, b bool) *MockTypeDefCache_Get_Call
func (*MockTypeDefCache_Get_Call) Run ¶
func (_c *MockTypeDefCache_Get_Call) Run(run func(pkgPath string, typeName string)) *MockTypeDefCache_Get_Call
func (*MockTypeDefCache_Get_Call) RunAndReturn ¶
func (_c *MockTypeDefCache_Get_Call) RunAndReturn(run func(pkgPath string, typeName string) (*cache.TypeDef, bool)) *MockTypeDefCache_Get_Call
type MockTypeDefCache_Load_Call ¶
MockTypeDefCache_Load_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Load'
func (*MockTypeDefCache_Load_Call) Return ¶
func (_c *MockTypeDefCache_Load_Call) Return(err error) *MockTypeDefCache_Load_Call
func (*MockTypeDefCache_Load_Call) Run ¶
func (_c *MockTypeDefCache_Load_Call) Run(run func(ctx context.Context, pkgPath string)) *MockTypeDefCache_Load_Call
func (*MockTypeDefCache_Load_Call) RunAndReturn ¶
func (_c *MockTypeDefCache_Load_Call) RunAndReturn(run func(ctx context.Context, pkgPath string) error) *MockTypeDefCache_Load_Call