Skip to content

Commit e32f86a

Browse files
lucascool12la10736
authored andcommitted
docs: fix filemode examples
1 parent 3d6f05f commit e32f86a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rstest/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,10 +1047,13 @@ pub use rstest_macros::fixture;
10471047
///
10481048
/// ```
10491049
/// # use rstest::rstest;
1050+
/// # use std::path::PathBuf;
1051+
/// # use std::fs::read_to_string;
10501052
/// #[rstest]
10511053
/// fn for_each_path(
10521054
/// #[files("src/**/*.rs")] #[exclude("test")] #[mode = path] path: PathBuf
10531055
/// ) {
1056+
/// let contents = read_to_string(path).unwrap();
10541057
/// assert!(contents.len() >= 0)
10551058
/// }
10561059
///

0 commit comments

Comments
 (0)