We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d6f05f commit e32f86aCopy full SHA for e32f86a
rstest/src/lib.rs
@@ -1047,10 +1047,13 @@ pub use rstest_macros::fixture;
1047
///
1048
/// ```
1049
/// # use rstest::rstest;
1050
+/// # use std::path::PathBuf;
1051
+/// # use std::fs::read_to_string;
1052
/// #[rstest]
1053
/// fn for_each_path(
1054
/// #[files("src/**/*.rs")] #[exclude("test")] #[mode = path] path: PathBuf
1055
/// ) {
1056
+/// let contents = read_to_string(path).unwrap();
1057
/// assert!(contents.len() >= 0)
1058
/// }
1059
0 commit comments