test

package
v1.20.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2017 License: BSD-3-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 Base

type Base struct {
	*test.Mock
	SourceInvocations        int
	SourceOutputs            []structure.Source
	MetaInvocations          int
	MetaOutputs              []interface{}
	ErrorInvocations         int
	ErrorOutputs             []error
	ReportErrorInvocations   int
	ReportErrorInputs        []error
	WithSourceInvocations    int
	WithSourceInputs         []structure.Source
	WithSourceOutputs        []structure.Base
	WithMetaInvocations      int
	WithMetaInputs           []interface{}
	WithMetaOutputs          []structure.Base
	WithReferenceInvocations int
	WithReferenceInputs      []string
	WithReferenceOutputs     []structure.Base
}

func NewBase

func NewBase() *Base

func (*Base) Error

func (b *Base) Error() error

func (*Base) Expectations

func (b *Base) Expectations()

func (*Base) Meta

func (b *Base) Meta() interface{}

func (*Base) ReportError

func (b *Base) ReportError(err error)

func (*Base) Source

func (b *Base) Source() structure.Source

func (*Base) WithMeta

func (b *Base) WithMeta(meta interface{}) structure.Base

func (*Base) WithReference

func (b *Base) WithReference(reference string) structure.Base

func (*Base) WithSource

func (b *Base) WithSource(source structure.Source) structure.Base

type Source

type Source struct {
	*test.Mock
	SourceInvocations        int
	SourceOutputs            []*errors.Source
	WithReferenceInvocations int
	WithReferenceInputs      []string
	WithReferenceOutputs     []structure.Source
}

func NewSource

func NewSource() *Source

func (*Source) Expectations

func (s *Source) Expectations()

func (*Source) Source

func (s *Source) Source() *errors.Source

func (*Source) WithReference

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

type Validatable

type Validatable struct {
	*test.Mock
	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 ValidatableWithString

type ValidatableWithString struct {
	*test.Mock
	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 {
	*test.Mock
	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