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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewNodeT

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

type Node

type Node struct {
	mock.Mock
}

Node is an autogenerated mock type for the Node type

func NewNode

func NewNode(t NewNodeT) *Node

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

func (*Node) ASTNode

func (_m *Node) ASTNode() (schema.ASTNode, error)

ASTNode provides a mock function with given fields:

func (*Node) AddConstraint

func (_m *Node) AddConstraint(_a0 constraint.Constraint)

AddConstraint provides a mock function with given fields: _a0

func (*Node) BasisLexEventOfSchemaForNode

func (_m *Node) BasisLexEventOfSchemaForNode() lexeme.LexEvent

BasisLexEventOfSchemaForNode provides a mock function with given fields:

func (*Node) Comment

func (_m *Node) Comment() string

Comment provides a mock function with given fields:

func (*Node) Constraint

func (_m *Node) Constraint(_a0 constraint.Type) constraint.Constraint

Constraint provides a mock function with given fields: _a0

func (*Node) ConstraintMap

func (_m *Node) ConstraintMap() *ischema.Constraints

ConstraintMap provides a mock function with given fields:

func (*Node) Copy

func (_m *Node) Copy() ischema.Node

Copy provides a mock function with given fields:

func (*Node) DeleteConstraint

func (_m *Node) DeleteConstraint(_a0 constraint.Type)

DeleteConstraint provides a mock function with given fields: _a0

func (*Node) Grow

func (_m *Node) Grow(_a0 lexeme.LexEvent) (ischema.Node, bool)

Grow provides a mock function with given fields: _a0

func (*Node) InheritedFrom

func (_m *Node) InheritedFrom() string

InheritedFrom provides a mock function with given fields:

func (*Node) NumberOfConstraints

func (_m *Node) NumberOfConstraints() int

NumberOfConstraints provides a mock function with given fields:

func (*Node) Parent

func (_m *Node) Parent() ischema.Node

Parent provides a mock function with given fields:

func (*Node) RealType

func (_m *Node) RealType() string

RealType provides a mock function with given fields:

func (*Node) SchemaType added in v0.2.0

func (_m *Node) SchemaType() schema.SchemaType

SchemaType provides a mock function with given fields:

func (*Node) SetComment

func (_m *Node) SetComment(_a0 string)

SetComment provides a mock function with given fields: _a0

func (*Node) SetInheritedFrom

func (_m *Node) SetInheritedFrom(_a0 string)

SetInheritedFrom provides a mock function with given fields: _a0

func (*Node) SetParent

func (_m *Node) SetParent(_a0 ischema.Node)

SetParent provides a mock function with given fields: _a0

func (*Node) SetRealType

func (_m *Node) SetRealType(_a0 string) bool

SetRealType provides a mock function with given fields: _a0

func (*Node) Type

func (_m *Node) Type() json.Type

Type provides a mock function with given fields:

func (*Node) Value

func (_m *Node) Value() bytes.Bytes

Value 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