Skip to main content

Crate ptox_conformance

Crate ptox_conformance 

Source
Expand description

§ptox-conformance

A contract conformance suite for ptox providers. It validates that a provider — written in Rust (check_in_process) or as a subprocess speaking the NDJSON wire format (check_command) — obeys the core contract (../ptox/spec/core-contract.md).

Use it as a library or via the ptox-conformance binary:

ptox-conformance -- ptox-provider-example --config /etc/example.conf

Structs§

Check
One conformance check and its outcome.
Options
What to run the provider against.
Report
The full set of checks run against one provider.

Functions§

check_command
Run the contract checks against a provider subprocess speaking NDJSON.
check_in_process
Run the contract checks against an in-process provider.