Documentation
¶
Index ¶
- func NewReference() string
- type Base
- func (b *Base) Error() error
- func (b *Base) Expectations()
- func (b *Base) Meta() interface{}
- func (b *Base) ReportError(err error)
- func (b *Base) Source() structure.Source
- func (b *Base) WithMeta(meta interface{}) structure.Base
- func (b *Base) WithReference(reference string) structure.Base
- func (b *Base) WithSource(source structure.Source) structure.Base
- type Source
- type Validatable
- type ValidatableWithString
- type ValidatableWithStringArray
- type ValidatableWithStringArrayInput
- type ValidatableWithStringInput
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 (*Base) Expectations ¶
func (b *Base) Expectations()
func (*Base) ReportError ¶
type Source ¶
type Source struct {
*test.Mock
SourceInvocations int
SourceOutputs []*errors.Source
WithReferenceInvocations int
WithReferenceInputs []string
WithReferenceOutputs []structure.Source
}
func (*Source) Expectations ¶
func (s *Source) Expectations()
type Validatable ¶
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()
type ValidatableWithStringArray ¶
type ValidatableWithStringArray struct {
*test.Mock
ValidateInvocations int
ValidateInputs []ValidatableWithStringArrayInput
}
func NewValidatableWithStringArray ¶
func NewValidatableWithStringArray() *ValidatableWithStringArray
func (*ValidatableWithStringArray) Expectations ¶
func (v *ValidatableWithStringArray) Expectations()
Click to show internal directories.
Click to hide internal directories.