Documentation
¶
Index ¶
- func Equal(lsrc func() (interface{}, []byte, error), ...) bool
- func FailJSONDiff(c *Caller, left interface{}, right interface{}, lb []byte, rb []byte) error
- func FailPlain(c *Caller, left interface{}, right interface{}, lb []byte, rb []byte) error
- func From(iface interface{}) func() (interface{}, []byte, error)
- func FromBytes(b []byte) func() (interface{}, []byte, error)
- func FromRaw(iface interface{}) func() (interface{}, []byte, error)
- func FromRawWithBytes(iface interface{}, b []byte) func() (interface{}, []byte, error)
- func FromReadCloser(reader io.ReadCloser) func() (interface{}, []byte, error)
- func FromReader(reader io.Reader) func() (interface{}, []byte, error)
- func FromString(s string) func() (interface{}, []byte, error)
- func MustNormalize(src interface{}) interface{}
- func Normalize(src interface{}) (interface{}, error)
- func ShouldBeSame(lsrc func() (interface{}, []byte, error), ...) error
- func WithLeftName(s string) func(*Caller)
- func WithPrefix(s string) func(*Caller)
- func WithRightName(s string) func(*Caller)
- type Caller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
func Equal(
lsrc func() (interface{}, []byte, error),
rsrc func() (interface{}, []byte, error),
options ...func(*Caller),
) bool
Equal :
func FailJSONDiff ¶
FailJSONDiff :
func FromRawWithBytes ¶
FromRawWithBytes :
func FromReadCloser ¶
func FromReadCloser(reader io.ReadCloser) func() (interface{}, []byte, error)
FromReadCloser :
func FromReader ¶
FromReader :
Types ¶
Click to show internal directories.
Click to hide internal directories.