Oxidite Testing
Testing utilities for Oxidite handlers and routers.
Installation
[]
= "2.1.0"
Available API
TestRequest: fluent request builder for GET/POST/PUT/DELETE.TestRequest::build_oxidite(): convert test request toOxiditeRequest.TestResponse: response wrapper helpers (status,text,json, assertions).TestServer: wraps atower::Service(includingRouter) for request execution.test_router(router): convenience constructor forTestServer<Router>.
Example
use *;
use ;
async
async
Notes
TestRequest::header/json/buildare convenience methods and may panic on invalid input.- Use
try_header,try_json, andtry_buildfor non-panicking test setup.