test

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReference

func NewReference() string

Types

type ArrayParsable

type ArrayParsable struct {
	ParseInvocations int
	ParseInputs      []structure.ArrayParser
}

func NewArrayParsable

func NewArrayParsable() *ArrayParsable

func (*ArrayParsable) Expectations

func (a *ArrayParsable) Expectations()

func (*ArrayParsable) Parse

func (a *ArrayParsable) Parse(objectParser structure.ArrayParser)

type ErrorReporter added in v1.24.0

type ErrorReporter struct {
	// contains filtered or unexported fields
}

func NewErrorReporter added in v1.24.0

func NewErrorReporter() *ErrorReporter

func (*ErrorReporter) Error added in v1.24.0

func (e *ErrorReporter) Error() error

func (*ErrorReporter) HasError added in v1.24.0

func (e *ErrorReporter) HasError() bool

func (*ErrorReporter) ReportError added in v1.24.0

func (e *ErrorReporter) ReportError(err error)

type Normalizable

type Normalizable struct {
	NormalizeInvocations int
	NormalizeInputs      []structure.Normalizer
	NormalizeStub        func(normalizer structure.Normalizer)
}

func NewNormalizable

func NewNormalizable() *Normalizable

func (*Normalizable) Expectations

func (n *Normalizable) Expectations()

func (*Normalizable) Normalize

func (n *Normalizable) Normalize(normalizer structure.Normalizer)

type ObjectParsable

type ObjectParsable struct {
	ParseInvocations int
	ParseInputs      []structure.ObjectParser
}

func NewObjectParsable

func NewObjectParsable() *ObjectParsable

func (*ObjectParsable) Expectations

func (o *ObjectParsable) Expectations()

func (*ObjectParsable) Parse

func (o *ObjectParsable) Parse(objectParser structure.ObjectParser)

type Source

type Source struct {
	ParameterInvocations     int
	ParameterOutput          *string
	ParameterOutputs         []string
	PointerInvocations       int
	PointerOutput            *string
	PointerOutputs           []string
	WithReferenceInvocations int
	WithReferenceInputs      []string
	WithReferenceOutput      *structure.Source
	WithReferenceOutputs     []structure.Source
}

func NewSource

func NewSource() *Source

func (*Source) Expectations

func (s *Source) Expectations()

func (*Source) Parameter

func (s *Source) Parameter() string

func (*Source) Pointer

func (s *Source) Pointer() string

func (*Source) WithReference

func (s *Source) WithReference(reference string) structure.Source

type Validatable

type Validatable struct {
	ValidateInvocations int
	ValidateInputs      []structure.Validator
}

func NewValidatable

func NewValidatable() *Validatable

func (*Validatable) Expectations

func (v *Validatable) Expectations()

func (*Validatable) Validate

func (v *Validatable) Validate(validator structure.Validator)

type ValidatableWithInt added in v1.26.0

type ValidatableWithInt struct {
	ValidateInvocations int
	ValidateInputs      []ValidatableWithIntInput
}

func NewValidatableWithInt added in v1.26.0

func NewValidatableWithInt() *ValidatableWithInt

func (*ValidatableWithInt) Expectations added in v1.26.0

func (v *ValidatableWithInt) Expectations()

func (*ValidatableWithInt) Validate added in v1.26.0

func (v *ValidatableWithInt) Validate(validator structure.Validator, i *int)

type ValidatableWithIntInput added in v1.26.0

type ValidatableWithIntInput struct {
	Validator structure.Validator
	Int       *int
}

type ValidatableWithString

type ValidatableWithString struct {
	ValidateInvocations int
	ValidateInputs      []ValidatableWithStringInput
}

func NewValidatableWithString

func NewValidatableWithString() *ValidatableWithString

func (*ValidatableWithString) Expectations

func (v *ValidatableWithString) Expectations()

func (*ValidatableWithString) Validate

func (v *ValidatableWithString) Validate(validator structure.Validator, str *string)

type ValidatableWithStringArray

type ValidatableWithStringArray struct {
	ValidateInvocations int
	ValidateInputs      []ValidatableWithStringArrayInput
}

func NewValidatableWithStringArray

func NewValidatableWithStringArray() *ValidatableWithStringArray

func (*ValidatableWithStringArray) Expectations

func (v *ValidatableWithStringArray) Expectations()

func (*ValidatableWithStringArray) Validate

func (v *ValidatableWithStringArray) Validate(validator structure.Validator, strArray *[]string)

type ValidatableWithStringArrayInput

type ValidatableWithStringArrayInput struct {
	Validator   structure.Validator
	StringArray *[]string
}

type ValidatableWithStringInput

type ValidatableWithStringInput struct {
	Validator structure.Validator
	String    *string
}

Jump to

Keyboard shortcuts

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