proptest_arbitrary/_std/path.rs
1//! Arbitrary implementations for `std::path`.
2
3use std::path::*;
4
5// TODO: Figure out PathBuf and then Box/Rc/Box<Path>.
6
7arbitrary!(StripPrefixError; Path::new("").strip_prefix("a").unwrap_err());
8
9#[cfg(test)]
10mod test {
11 no_panic_test!(
12 strip_prefix_error => StripPrefixError
13 );
14}