specmocks

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockComment

type MockComment struct {
	mock.Mock
}

MockComment is an autogenerated mock type for the Comment type

func NewMockComment

func NewMockComment(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockComment

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

func (_m *MockComment) EXPECT() *MockComment_Expecter

func (*MockComment) ParseInto

func (_mock *MockComment) ParseInto(c string, s *openapi.Extendable[openapi.OpenAPI]) error

ParseInto provides a mock function for the type MockComment

func (*MockComment) Tag

func (_mock *MockComment) Tag() string

Tag provides a mock function for the type MockComment

func (*MockComment) Usage

func (_mock *MockComment) Usage() string

Usage provides a mock function for the type MockComment

type MockComment_Expecter

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

func (*MockComment_Expecter) ParseInto

func (_e *MockComment_Expecter) ParseInto(c interface{}, s interface{}) *MockComment_ParseInto_Call

ParseInto is a helper method to define mock.On call

  • c string
  • s *openapi.Extendable[openapi.OpenAPI]

func (*MockComment_Expecter) Tag

Tag is a helper method to define mock.On call

func (*MockComment_Expecter) Usage

Usage is a helper method to define mock.On call

type MockComment_ParseInto_Call

type MockComment_ParseInto_Call struct {
	*mock.Call
}

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

func (*MockComment_ParseInto_Call) Return

func (*MockComment_ParseInto_Call) Run

func (*MockComment_ParseInto_Call) RunAndReturn

type MockComment_Tag_Call

type MockComment_Tag_Call struct {
	*mock.Call
}

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

func (*MockComment_Tag_Call) Return

func (*MockComment_Tag_Call) Run

func (_c *MockComment_Tag_Call) Run(run func()) *MockComment_Tag_Call

func (*MockComment_Tag_Call) RunAndReturn

func (_c *MockComment_Tag_Call) RunAndReturn(run func() string) *MockComment_Tag_Call

type MockComment_Usage_Call

type MockComment_Usage_Call struct {
	*mock.Call
}

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

func (*MockComment_Usage_Call) Return

func (*MockComment_Usage_Call) Run

func (_c *MockComment_Usage_Call) Run(run func()) *MockComment_Usage_Call

func (*MockComment_Usage_Call) RunAndReturn

func (_c *MockComment_Usage_Call) RunAndReturn(run func() string) *MockComment_Usage_Call

type MockRegistry

type MockRegistry struct {
	mock.Mock
}

MockRegistry is an autogenerated mock type for the Registry type

func NewMockRegistry

func NewMockRegistry(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRegistry

NewMockRegistry creates a new instance of MockRegistry. 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 (*MockRegistry) Comments

func (_mock *MockRegistry) Comments() []spec.Comment

Comments provides a mock function for the type MockRegistry

func (*MockRegistry) EXPECT

func (_m *MockRegistry) EXPECT() *MockRegistry_Expecter

func (*MockRegistry) Parse

func (_mock *MockRegistry) Parse(line string, spec1 *openapi.Extendable[openapi.OpenAPI]) error

Parse provides a mock function for the type MockRegistry

func (*MockRegistry) Register

func (_mock *MockRegistry) Register(c spec.Comment)

Register provides a mock function for the type MockRegistry

type MockRegistry_Comments_Call

type MockRegistry_Comments_Call struct {
	*mock.Call
}

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

func (*MockRegistry_Comments_Call) Return

func (*MockRegistry_Comments_Call) Run

func (*MockRegistry_Comments_Call) RunAndReturn

func (_c *MockRegistry_Comments_Call) RunAndReturn(run func() []spec.Comment) *MockRegistry_Comments_Call

type MockRegistry_Expecter

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

func (*MockRegistry_Expecter) Comments

Comments is a helper method to define mock.On call

func (*MockRegistry_Expecter) Parse

func (_e *MockRegistry_Expecter) Parse(line interface{}, spec1 interface{}) *MockRegistry_Parse_Call

Parse is a helper method to define mock.On call

  • line string
  • spec1 *openapi.Extendable[openapi.OpenAPI]

func (*MockRegistry_Expecter) Register

func (_e *MockRegistry_Expecter) Register(c interface{}) *MockRegistry_Register_Call

Register is a helper method to define mock.On call

  • c spec.Comment

type MockRegistry_Parse_Call

type MockRegistry_Parse_Call struct {
	*mock.Call
}

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

func (*MockRegistry_Parse_Call) Return

func (*MockRegistry_Parse_Call) Run

func (*MockRegistry_Parse_Call) RunAndReturn

func (_c *MockRegistry_Parse_Call) RunAndReturn(run func(line string, spec1 *openapi.Extendable[openapi.OpenAPI]) error) *MockRegistry_Parse_Call

type MockRegistry_Register_Call

type MockRegistry_Register_Call struct {
	*mock.Call
}

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

func (*MockRegistry_Register_Call) Return

func (*MockRegistry_Register_Call) Run

func (*MockRegistry_Register_Call) RunAndReturn

func (_c *MockRegistry_Register_Call) RunAndReturn(run func(c spec.Comment)) *MockRegistry_Register_Call

Jump to

Keyboard shortcuts

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