proptest-arbitrary 0.2.2

The Arbitrary trait for proptest and implementations for the standard library.
Documentation
//! Arbitrary implementations for `std::fs`.

use super::*;
use std::fs::{DirBuilder};

// TODO: other parts (figure out workable semantics).

arbitrary!(DirBuilder, SMapped<'a, bool, Self>; {
    static_map(any::<bool>(), |recursive| {
        let mut db = DirBuilder::new();
        db.recursive(recursive);
        db
    })
});

#[cfg(test)]
mod test {
    no_panic_test!(dir_builder => DirBuilder);
}