cachemocks

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDefinitionsCache

type MockDefinitionsCache struct {
	mock.Mock
}

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

func (_mock *MockDefinitionsCache) Definitions() map[string]*openapi.RefOrSpec[openapi.Schema]

Definitions provides a mock function for the type MockDefinitionsCache

func (*MockDefinitionsCache) EXPECT

func (*MockDefinitionsCache) Get

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

func (*MockDefinitionsCache) Put

Put provides a mock function for the type MockDefinitionsCache

type MockDefinitionsCache_Definitions_Call

type MockDefinitionsCache_Definitions_Call struct {
	*mock.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 (*MockDefinitionsCache_Definitions_Call) Run

func (*MockDefinitionsCache_Definitions_Call) RunAndReturn

type MockDefinitionsCache_Expecter

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

func (*MockDefinitionsCache_Expecter) Definitions

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

type MockDefinitionsCache_Get_Call struct {
	*mock.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 (*MockDefinitionsCache_Get_Call) Run

func (*MockDefinitionsCache_Get_Call) RunAndReturn

type MockDefinitionsCache_IsResolving_Call

type MockDefinitionsCache_IsResolving_Call struct {
	*mock.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 (*MockDefinitionsCache_IsResolving_Call) Run

func (*MockDefinitionsCache_IsResolving_Call) RunAndReturn

type MockDefinitionsCache_MarkResolving_Call

type MockDefinitionsCache_MarkResolving_Call struct {
	*mock.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 (*MockDefinitionsCache_MarkResolving_Call) Run

func (*MockDefinitionsCache_MarkResolving_Call) RunAndReturn

type MockDefinitionsCache_Put_Call

type MockDefinitionsCache_Put_Call struct {
	*mock.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 (*MockDefinitionsCache_Put_Call) Run

func (*MockDefinitionsCache_Put_Call) RunAndReturn

type MockParserCache

type MockParserCache struct {
	mock.Mock
}

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 (*MockParserCache) Parse

func (_mock *MockParserCache) Parse(filename string) (*ast.File, error)

Parse provides a mock function for the type MockParserCache

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

type MockParserCache_Parse_Call struct {
	*mock.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 (*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

type MockTypeDefCache struct {
	mock.Mock
}

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 (*MockTypeDefCache) Get

func (_mock *MockTypeDefCache) Get(pkgPath string, typeName string) (*cache.TypeDef, bool)

Get provides a mock function for the type MockTypeDefCache

func (*MockTypeDefCache) Load

func (_mock *MockTypeDefCache) Load(ctx context.Context, pkgPath string) error

Load provides a mock function for the type MockTypeDefCache

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

type MockTypeDefCache_Get_Call struct {
	*mock.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 (*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

type MockTypeDefCache_Load_Call struct {
	*mock.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 (*MockTypeDefCache_Load_Call) Run

func (*MockTypeDefCache_Load_Call) RunAndReturn

func (_c *MockTypeDefCache_Load_Call) RunAndReturn(run func(ctx context.Context, pkgPath string) error) *MockTypeDefCache_Load_Call

Jump to

Keyboard shortcuts

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