mocks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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