proptest_arbitrary/_std/fs.rs
1//! Arbitrary implementations for `std::fs`.
2
3use super::*;
4use std::fs::{DirBuilder};
5
6// TODO: other parts (figure out workable semantics).
7
8arbitrary!(DirBuilder, SMapped<'a, bool, Self>; {
9 static_map(any::<bool>(), |recursive| {
10 let mut db = DirBuilder::new();
11 db.recursive(recursive);
12 db
13 })
14});
15
16#[cfg(test)]
17mod test {
18 no_panic_test!(dir_builder => DirBuilder);
19}