Skip to main content

Crate typesafe_rs_mock

Crate typesafe_rs_mock 

Source
Expand description

In-process HTTP mock for typesafe-rs.

Binds 127.0.0.1:0, scripts POST /v1/systemone and GET /v1/models, and records a request journal. Tests use a real Client over loopback.

Structs§

MockServer
Running mock API, bound to a random localhost port.
RecordedRequest
One observed HTTP request.
StubBuilder
Fluent stub registration. Mounted on drop.

Functions§

choice
Build a Choice answer object.
noul
Build a Noul answer object.
score
Build a Score answer object.