Documentation
¶
Index ¶
- type MockComment
- type MockComment_Expecter
- type MockComment_ParseInto_Call
- func (_c *MockComment_ParseInto_Call) Return(err error) *MockComment_ParseInto_Call
- func (_c *MockComment_ParseInto_Call) Run(run func(c string, f *ast.File, op *operation.Operation)) *MockComment_ParseInto_Call
- func (_c *MockComment_ParseInto_Call) RunAndReturn(run func(c string, f *ast.File, op *operation.Operation) error) *MockComment_ParseInto_Call
- type MockComment_Tag_Call
- type MockComment_Usage_Call
- type MockRegistry
- type MockRegistry_Comments_Call
- type MockRegistry_Expecter
- type MockRegistry_Parse_Call
- func (_c *MockRegistry_Parse_Call) Return(err error) *MockRegistry_Parse_Call
- func (_c *MockRegistry_Parse_Call) Run(run func(line string, f *ast.File, op *operation.Operation)) *MockRegistry_Parse_Call
- func (_c *MockRegistry_Parse_Call) RunAndReturn(run func(line string, f *ast.File, op *operation.Operation) error) *MockRegistry_Parse_Call
- type MockRegistry_Register_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockComment ¶
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) 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{}, f interface{}, op interface{}) *MockComment_ParseInto_Call
ParseInto is a helper method to define mock.On call
- c string
- f *ast.File
- op *operation.Operation
func (*MockComment_Expecter) Tag ¶
func (_e *MockComment_Expecter) Tag() *MockComment_Tag_Call
Tag is a helper method to define mock.On call
func (*MockComment_Expecter) Usage ¶
func (_e *MockComment_Expecter) Usage() *MockComment_Usage_Call
Usage is a helper method to define mock.On call
type MockComment_ParseInto_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 (_c *MockComment_ParseInto_Call) Return(err error) *MockComment_ParseInto_Call
func (*MockComment_ParseInto_Call) Run ¶
func (_c *MockComment_ParseInto_Call) Run(run func(c string, f *ast.File, op *operation.Operation)) *MockComment_ParseInto_Call
func (*MockComment_ParseInto_Call) RunAndReturn ¶
func (_c *MockComment_ParseInto_Call) RunAndReturn(run func(c string, f *ast.File, op *operation.Operation) error) *MockComment_ParseInto_Call
type MockComment_Tag_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 (_c *MockComment_Tag_Call) Return(s string) *MockComment_Tag_Call
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 ¶
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 (_c *MockComment_Usage_Call) Return(s string) *MockComment_Usage_Call
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 ¶
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() []operation.Comment
Comments provides a mock function for the type MockRegistry
func (*MockRegistry) EXPECT ¶
func (_m *MockRegistry) EXPECT() *MockRegistry_Expecter
func (*MockRegistry) Register ¶
func (_mock *MockRegistry) Register(c operation.Comment)
Register provides a mock function for the type MockRegistry
type MockRegistry_Comments_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 (_c *MockRegistry_Comments_Call) Return(comments []operation.Comment) *MockRegistry_Comments_Call
func (*MockRegistry_Comments_Call) Run ¶
func (_c *MockRegistry_Comments_Call) Run(run func()) *MockRegistry_Comments_Call
func (*MockRegistry_Comments_Call) RunAndReturn ¶
func (_c *MockRegistry_Comments_Call) RunAndReturn(run func() []operation.Comment) *MockRegistry_Comments_Call
type MockRegistry_Expecter ¶
type MockRegistry_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRegistry_Expecter) Comments ¶
func (_e *MockRegistry_Expecter) Comments() *MockRegistry_Comments_Call
Comments is a helper method to define mock.On call
func (*MockRegistry_Expecter) Parse ¶
func (_e *MockRegistry_Expecter) Parse(line interface{}, f interface{}, op interface{}) *MockRegistry_Parse_Call
Parse is a helper method to define mock.On call
- line string
- f *ast.File
- op *operation.Operation
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 operation.Comment
type MockRegistry_Parse_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 (_c *MockRegistry_Parse_Call) Return(err error) *MockRegistry_Parse_Call
func (*MockRegistry_Parse_Call) Run ¶
func (_c *MockRegistry_Parse_Call) Run(run func(line string, f *ast.File, op *operation.Operation)) *MockRegistry_Parse_Call
func (*MockRegistry_Parse_Call) RunAndReturn ¶
func (_c *MockRegistry_Parse_Call) RunAndReturn(run func(line string, f *ast.File, op *operation.Operation) error) *MockRegistry_Parse_Call
type MockRegistry_Register_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 (_c *MockRegistry_Register_Call) Return() *MockRegistry_Register_Call
func (*MockRegistry_Register_Call) Run ¶
func (_c *MockRegistry_Register_Call) Run(run func(c operation.Comment)) *MockRegistry_Register_Call
func (*MockRegistry_Register_Call) RunAndReturn ¶
func (_c *MockRegistry_Register_Call) RunAndReturn(run func(c operation.Comment)) *MockRegistry_Register_Call