func AbortsContains
AbortsContains requires that the code inside the specified func aborts (panics when crossing another realm) and the abort message contains the specified substring. See uassert.AbortsWithMessage for `rlm` semantics.
v0 - Unaudited: This is an initial version that has not yet been formally audited. A fully audited version will be pu...
v0 - Unaudited This is an initial version of this package that has not yet been formally audited. A fully audited version will be published as a subsequent release. Use in production at your own risk.
Package urequire provides test assertion functions that immediately fail the test on error, complementing the uassert package.
v0 - Unaudited: This is an initial version that has not yet been formally audited. A fully audited version will be published as a subsequent release. Use in production at your own risk.
Package urequire provides test assertion functions that immediately fail the test on error, complementing the uassert package.
urequire is a sister package for uassert. XXX: codegen the package.
AbortsContains requires that the code inside the specified func aborts (panics when crossing another realm) and the abort message contains the specified substring. See uassert.AbortsWithMessage for `rlm` semantics.
AbortsWithMessage requires that the code inside the specified func aborts (panics when crossing another realm). Use PanicsWithMessage for requiring local panics within the same realm. Note: This relies on gno's `revive` mechanism to catch aborts. See uassert.AbortsWithMessage for `rlm` semantics.
Empty requires that the specified object is empty (zero value, empty string/slice/map, or nil).
Equal requires that two objects are equal.
Error requires that a function returned an error (i.e. not `nil`).
ErrorContains requires that a function returned an error (i.e. not `nil`) and that the error contains the specified substring.
ErrorIs requires that the given error matches the target error.
False requires that the specified value is false.
Nil requires that the value is nil.
NoError requires that a function returned no error (i.e. `nil`).
NotAborts requires that the code inside the specified func does NOT abort when crossing an execution boundary (e.g., VM call). Use NotPanics for requiring the absence of local panics within the same realm. Note: This relies on Gno's `revive` mechanism. See uassert.AbortsWithMessage for `rlm` semantics.
NotEmpty requires that the specified object is not empty.
NotEqual requires that two objects are not equal.
NotNil requires that the value is not nil.
NotPanics requires that the code inside the specified func does NOT panic locally within the same execution realm. Use NotAborts for requiring the absence of panics that cross execution boundaries (aborts). See uassert.AbortsWithMessage for `rlm` semantics.
NotTypedNil requires that the value is not a typed-nil (nil pointer) value.
PanicsContains requires that the code inside the specified func panics locally within the same execution realm and the panic message contains the specified substring. See uassert.AbortsWithMessage for `rlm` semantics.
PanicsWithMessage requires that the code inside the specified func panics locally within the same execution realm. Use AbortsWithMessage for requiring panics that cross execution boundaries (aborts). See uassert.AbortsWithMessage for `rlm` semantics.
True requires that the specified value is true.
TypedNil requires that the value is a typed-nil (nil pointer) value.