Http module

test_client

procedure · 1 overloadSource

A client for app. The app must stay alive and unchanged in its routes while the client is used; its state pointer is yours to inspect between requests. The client belongs to the test run (run_tests frees it afterwards); free_test_client releases one sooner.

test_client :: (app: *App, options := Test_Options.{}) -> *Client

A client for app. The app must stay alive and unchanged in its routes while the client is used; its state pointer is yours to inspect between requests. The client belongs to the test run (run_tests frees it afterwards); free_test_client releases one sooner.

Parameters

app: *App
options := Test_Options.{}

Returns

See also