gvalid

package
v0.0.0-...-201756f Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchEnumErr

func MatchEnumErr(field string) types.GomegaMatcher

func MatchFieldErr

func MatchFieldErr(field, tag string) types.GomegaMatcher

func MatchRequiredErr

func MatchRequiredErr(field string) types.GomegaMatcher

Types

type MatchFieldErrMatcher

type MatchFieldErrMatcher struct {
	Field    string
	Tag      string
	Expected *valid.FieldErr
}

func (*MatchFieldErrMatcher) FailureMessage

func (matcher *MatchFieldErrMatcher) FailureMessage(actual interface{}) (message string)

func (*MatchFieldErrMatcher) Match

func (m *MatchFieldErrMatcher) Match(a interface{}) (success bool, err error)

func (*MatchFieldErrMatcher) NegatedFailureMessage

func (matcher *MatchFieldErrMatcher) NegatedFailureMessage(actual interface{}) (message string)

Jump to

Keyboard shortcuts

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