Skip to main content

conformance

Function conformance 

Source
pub fn conformance(module: Box<dyn Module>)
Expand description

Runs the shared conformance suite against one module, once per dialect available in the environment (issue #20 — SQLite always, Postgres when FZ_TEST_POSTGRES_URL names a server):

  1. mounts under /v1/<name> and /__health lists it with its version;
  2. a request under the module prefix is answered (no harness-level crash — module-specific routes are covered by the module’s own tests via crate::request);
  3. migrations apply from scratch twice on fresh databases (idempotence);
  4. no undeclared port access: Ports::view_for hides every port the module did not declare;
  5. two concurrent requests keep their own request ids (ADR 0007);
  6. a well-known router, when provided, serves at the root under /.well-known and never under /v1 (issue #46).

§Panics

Panics with a message naming the failed check and the dialect.