mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	mock.Mock
}

Document is an autogenerated mock type for the Document type

func NewDocument

func NewDocument(t NewDocumentT) *Document

NewDocument creates a new instance of Document. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Document) Check

func (_m *Document) Check() error

Check provides a mock function with given fields:

func (*Document) Content

func (_m *Document) Content() bytes.Bytes

Content provides a mock function with given fields:

func (*Document) Len

func (_m *Document) Len() (uint, error)

Len provides a mock function with given fields:

func (*Document) NextLexeme

func (_m *Document) NextLexeme() (lexeme.LexEvent, error)

NextLexeme provides a mock function with given fields:

type NewDocumentT

type NewDocumentT interface {
	mock.TestingT
	Cleanup(func())
}

type NewRuleT

type NewRuleT interface {
	mock.TestingT
	Cleanup(func())
}

type Rule

type Rule struct {
	mock.Mock
}

Rule is an autogenerated mock type for the Rule type

func NewRule

func NewRule(t NewRuleT) *Rule

NewRule creates a new instance of Rule. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Rule) Check

func (_m *Rule) Check() error

Check provides a mock function with given fields:

func (*Rule) GetAST

func (_m *Rule) GetAST() (schema.ASTNode, error)

GetAST provides a mock function with given fields:

func (*Rule) Len

func (_m *Rule) Len() (uint, error)

Len provides a mock function with given fields:

Jump to

Keyboard shortcuts

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