Documentation ¶
Index ¶
- Constants
- func Assert() error
- func Equal(actual any, expected any, message ...any) error
- func IsAssertionError(err error) bool
- func NotStrictEqual(actual any, expected any, message ...any) error
- type AssertionError
- type AssertionErrorBase
- func (e *AssertionErrorBase) Actual() any
- func (e *AssertionErrorBase) Code() string
- func (e *AssertionErrorBase) Error() string
- func (e *AssertionErrorBase) Expected() any
- func (e *AssertionErrorBase) GeneratedMessage() bool
- func (e *AssertionErrorBase) Message() string
- func (e *AssertionErrorBase) Name() string
- func (e *AssertionErrorBase) Operator() *string
- func (e *AssertionErrorBase) String() string
- func (e *AssertionErrorBase) V8FuncToString(in isolates.FunctionArgs) (*isolates.Value, error)
- func (e *AssertionErrorBase) V8GetActual(in isolates.GetterArgs) (*isolates.Value, error)
- func (e *AssertionErrorBase) V8GetCode(in isolates.GetterArgs) (*isolates.Value, error)
- func (e *AssertionErrorBase) V8GetExpected(in isolates.GetterArgs) (*isolates.Value, error)
- func (e *AssertionErrorBase) V8GetGeneratedMessage(in isolates.GetterArgs) (*isolates.Value, error)
- func (e *AssertionErrorBase) V8GetMessage(in isolates.GetterArgs) (*isolates.Value, error)
- func (e *AssertionErrorBase) V8GetName(in isolates.GetterArgs) (*isolates.Value, error)
- func (e *AssertionErrorBase) V8GetOperator(in isolates.GetterArgs) (*isolates.Value, error)
- type AssertionErrorOptions
- type Import
Constants ¶
View Source
const ( AssertionErrorName string = "AssertionError" AssertionErrorCode = "ERR_ASSERTION" )
Variables ¶
This section is empty.
Functions ¶
func IsAssertionError ¶
Types ¶
type AssertionError ¶
type AssertionErrorBase ¶
type AssertionErrorBase struct {
// contains filtered or unexported fields
}
func (*AssertionErrorBase) Actual ¶
func (e *AssertionErrorBase) Actual() any
func (*AssertionErrorBase) Code ¶
func (e *AssertionErrorBase) Code() string
func (*AssertionErrorBase) Error ¶
func (e *AssertionErrorBase) Error() string
func (*AssertionErrorBase) Expected ¶
func (e *AssertionErrorBase) Expected() any
func (*AssertionErrorBase) GeneratedMessage ¶
func (e *AssertionErrorBase) GeneratedMessage() bool
func (*AssertionErrorBase) Message ¶
func (e *AssertionErrorBase) Message() string
func (*AssertionErrorBase) Name ¶
func (e *AssertionErrorBase) Name() string
func (*AssertionErrorBase) Operator ¶
func (e *AssertionErrorBase) Operator() *string
func (*AssertionErrorBase) String ¶
func (e *AssertionErrorBase) String() string
func (*AssertionErrorBase) V8FuncToString ¶
func (e *AssertionErrorBase) V8FuncToString(in isolates.FunctionArgs) (*isolates.Value, error)
func (*AssertionErrorBase) V8GetActual ¶
func (e *AssertionErrorBase) V8GetActual(in isolates.GetterArgs) (*isolates.Value, error)
func (*AssertionErrorBase) V8GetCode ¶
func (e *AssertionErrorBase) V8GetCode(in isolates.GetterArgs) (*isolates.Value, error)
func (*AssertionErrorBase) V8GetExpected ¶
func (e *AssertionErrorBase) V8GetExpected(in isolates.GetterArgs) (*isolates.Value, error)
func (*AssertionErrorBase) V8GetGeneratedMessage ¶
func (e *AssertionErrorBase) V8GetGeneratedMessage(in isolates.GetterArgs) (*isolates.Value, error)
func (*AssertionErrorBase) V8GetMessage ¶
func (e *AssertionErrorBase) V8GetMessage(in isolates.GetterArgs) (*isolates.Value, error)
func (*AssertionErrorBase) V8GetName ¶
func (e *AssertionErrorBase) V8GetName(in isolates.GetterArgs) (*isolates.Value, error)
func (*AssertionErrorBase) V8GetOperator ¶
func (e *AssertionErrorBase) V8GetOperator(in isolates.GetterArgs) (*isolates.Value, error)
type AssertionErrorOptions ¶
type AssertionErrorOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.