How burntsushi/quickcheck works
QuickCheck is a Rust property-testing library: users provide a property, and the library repeatedly tests it with generated inputs, shrinking failures to seek smaller counterexamples. Its runtime centers on QuickCheck and Testable; Arbitrary supplies generation and shrinking strategies. The crate also offers a declarative quickcheck! macro and a separate #[quickcheck] procedural macro that turns properties into Rust tests. The graph focuses on runtime behavior; unsampled implementation details are omitted, and optional logging is not mapped without evidence of its runtime wiring.
Main entry points: tester.rs QuickCheck Runner · src/lib.rs quickcheck! · src/lib.rs Attribute Macro · arbitrary.rs Arbitrary Values
Components 8
Test Entry Points
- quickcheck!
src/lib.rs - Attribute Macro
quickcheck_macros/src/lib.rs
Test Runtime
- QuickCheck Runner
src/tester.rs - Testable Evaluation
src/tester.rs - Test Result
src/tester.rs
Input Strategies
- Arbitrary Values
src/arbitrary.rs
Other components
- Test Author
- Property Function
Connections 9
- Test Author → Property Function: defines
README.md - Test Author → quickcheck!: uses
README.md - Test Author → Attribute Macro: uses
README.md - quickcheck! → QuickCheck Runner: invokes
src/lib.rs - Attribute Macro → QuickCheck Runner: generates call
quickcheck_macros/src/lib.rs - QuickCheck Runner → Testable Evaluation: evaluates
src/tester.rs - Testable Evaluation → Arbitrary Values: generates and shrinks
src/tester.rs - Testable Evaluation → Test Result: produces
src/tester.rs - QuickCheck Runner → Test Result: returns failure
src/tester.rs