testkit: document test_name for forked runs of prop::config

`config` keeps the fork mode that `PROPTEST_FORK` or `PROPTEST_TIMEOUT`
turns on. The doc comment now says that `TestRunner::run` then needs
`test_name`, which the named-test form of `proptest!` sets.
This commit is contained in:
dotCooCoo committed 2026-11-28 08:13:45 -08:00
1 parent c32bb21596
commit f22de6008b
1 file changed
+4 -1
+4 -1
View File
@@ -26,7 +26,10 @@ pub const SEED: u64 = 0x5eed_9a7f;
/// A proptest configuration that runs `cases` cases from [`SEED`] with failure persistence off.
///
/// `PROPTEST_CASES` replaces `cases` and `PROPTEST_RNG_SEED` replaces the seed when either is set.
/// Pass the result to `#![proptest_config(...)]` or to `TestRunner::new`.
/// Pass the result to `#![proptest_config(...)]` or to `TestRunner::new`. When `PROPTEST_FORK` or
/// `PROPTEST_TIMEOUT` turns on fork mode, `TestRunner::run` needs `test_name` set to the test's fully
/// qualified name. The named-test form of `proptest!` sets it, and drawing values without `run` does
/// not need it.
///
/// # Panics
///