mocks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewSchemaT

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

type Schema

type Schema struct {
	mock.Mock
}

Schema is an autogenerated mock type for the Schema type

func NewSchema

func NewSchema(t NewSchemaT) *Schema

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

func (*Schema) AddRule

func (_m *Schema) AddRule(name string, _a1 schema.Rule) error

AddRule provides a mock function with given fields: name, _a1

func (*Schema) AddType

func (_m *Schema) AddType(name string, _a1 schema.Schema) error

AddType provides a mock function with given fields: name, _a1

func (*Schema) Check

func (_m *Schema) Check() error

Check provides a mock function with given fields:

func (*Schema) Example

func (_m *Schema) Example() ([]byte, error)

Example provides a mock function with given fields:

func (*Schema) GetAST

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

GetAST provides a mock function with given fields:

func (*Schema) Len

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

Len provides a mock function with given fields:

func (*Schema) UsedUserTypes

func (_m *Schema) UsedUserTypes() ([]string, error)

UsedUserTypes 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