Skip to main content

turso_assert_sometimes_less_than

Macro turso_assert_sometimes_less_than 

Source
turso_assert_sometimes_less_than!() { /* proc-macro */ }
Expand description

Observational assertion: tells Antithesis that left < right should be true at least once across all test runs. Never panics.

§Behavior

  • Without antithesis feature: evaluates both operands, then discards the result. No-op.
  • With antithesis feature: reports to Antithesis via assert_sometimes!.

§Parameters

  • left, right — operands to compare.
  • "message" (optional) — auto-generated as "left < right" if omitted.
  • { "key": value, ... } (optional) — structured details.

§Usage

ⓘ
turso_assert_sometimes_less_than!(left, right);
turso_assert_sometimes_less_than!(left, right, "message");
turso_assert_sometimes_less_than!(left, right, "message", { "key": value });