Skip to main content

render_http_test_function

Function render_http_test_function 

Source
pub fn render_http_test_function(
    out: &mut String,
    fixture: &Fixture,
    dep_name: &str,
)
Expand description

Generate a complete integration test function for an http fixture.

Builds a real spikard App with a handler that returns the expected response, then uses axum_test::TestServer to send the request and assert the status code.