rsonpath-syntax-proptest – proptest::Arbitrary implementation for rsonpath-syntax
Utilities for property testing with types in rsonpath-syntax.
The crate exposes two types, ArbitraryJsonPathQuery and ArbitraryJsonPathQueryParam.
The ArbitraryJsonPathQuery implements proptest::Arbitrary
which generates an arbitrary JSONPath query string representation and rsonpath_syntax::JsonPathQuery object.
Usage
This is mostly used for internal testing of rsonpath-lib and rsonpath-syntax, but it is in general useful
for property-testing or fuzzing code that relies on JSONPath queries as input.
Example usage with proptest:
use *;
use ArbitraryJsonPathQuery;
proptest!