Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Bool = reflect.TypeOf(false) Interface = reflect.TypeOf((*interface{})(nil)).Elem() SliceInterface = reflect.TypeOf(([]interface{})(nil)) FmtStringer = reflect.TypeOf((*fmt.Stringer)(nil)).Elem() Error = reflect.TypeOf((*error)(nil)).Elem() JsonUnmarshaler = reflect.TypeOf((*json.Unmarshaler)(nil)).Elem() //nolint: revive Time = reflect.TypeOf(time.Time{}) Int = reflect.TypeOf(int(0)) Uint8 = reflect.TypeOf(uint8(0)) Rune = reflect.TypeOf(rune(0)) String = reflect.TypeOf("") )
Functions ¶
Types ¶
type OperatorNotJSONMarshallableError ¶ added in v1.9.2
type OperatorNotJSONMarshallableError string
OperatorNotJSONMarshallableError implements error interface. It is returned by (*td.TestDeep).MarshalJSON() to notice the user an operator cannot be JSON Marshal'led.
func AsOperatorNotJSONMarshallableError ¶ added in v1.9.2
func AsOperatorNotJSONMarshallableError(err error) (OperatorNotJSONMarshallableError, bool)
AsOperatorNotJSONMarshallableError checks that err is or contains an OperatorNotJSONMarshallableError and if yes, returns it and true.
func (OperatorNotJSONMarshallableError) Error ¶ added in v1.9.2
func (e OperatorNotJSONMarshallableError) Error() string
Error implements error interface.
func (OperatorNotJSONMarshallableError) Operator ¶ added in v1.9.2
func (e OperatorNotJSONMarshallableError) Operator() string
Operator returns the operator behind this error.
type TestDeepStamp ¶
type TestDeepStamp struct{}
TestDeepStamp is a useful type providing the _TestDeep() method needed to implement TestDeepStringer interface.
type TestDeepStringer ¶
type TestDeepStringer interface { String() string // contains filtered or unexported methods }
TestDeepStringer is a TestDeep specific interface for objects which know how to stringify themselves.
Click to show internal directories.
Click to hide internal directories.