Skip to main content

turso_assert_ne

Macro turso_assert_ne 

Source
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 antithesis feature: behaves exactly like [assert_ne!].
  • With antithesis feature: reports to Antithesis, then on failure prints the error and calls std::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 });