This crate contains the test suite for the prost-validate
and prost-reflect-validate
crates.
The test suite is adapted from the protoc-gen-validate harness tests.
The prost-validate
and prost-reflect-validate
crates are tested against the same test suite to ensure that both implementations are compatible.
The prost-validate
tests are behind the derive
feature, and the prost-reflect-validate
tests are behind the reflect
feature.
The benchmark suite is also shared between the two implementations. It runs the test suite multiple times to measure the performance of the validation code.
cargo test --features derive
cargo test --features reflect
cargo test --all-features
cargo bench --all-features