turso_assert_ne!() { /* proc-macro */ }Expand description
Drop-in replacement for [assert_ne!] that additionally reports to the
Antithesis SDK in Antithesis builds (--cfg=antithesis).
§Behavior
- Without
antithesisfeature: behaves exactly like [assert_ne!]. - With
antithesisfeature: reports to Antithesis, then on failure prints the error and callsstd::process::exit(0).
§Parameters
left,right— values to compare for inequality."message"(optional) — auto-generated as"left != right"if omitted.{ "key": value, ... }(optional) — structured details.
§Usage
ⓘ
turso_assert_ne!(left, right);
turso_assert_ne!(left, right, "message");
turso_assert_ne!(left, right, "message", { "key": value });