Expand description
Shared HTTP-test driver.
Calls trait primitives on a TestClientRenderer in the canonical order
a TestClient-driven test takes:
render_test_open— doc, signature, opening brace, language-native skip annotation.render_call—let response = client.METHOD(...).render_assert_status— status code assertion.render_assert_header(per header) — header assertions.render_assert_json_body/render_assert_partial_body— body assertion.render_assert_validation_errors— 422 validation errors, if present.render_test_close— closing brace /end.
Steps 3-6 are skipped automatically when the corresponding expectation is empty.
Constants§
- DEFAULT_
RESPONSE_ VAR - Default name for the response binding inside a generated test.
Functions§
- render_
http_ test - Render a single HTTP test for
fixturetooutusingrenderer.