diff --git a/src/context.rs b/src/context.rs index 6faa7884..14b7fa30 100644 --- a/src/context.rs +++ b/src/context.rs @@ -177,6 +177,7 @@ pub struct DirContents { } impl DirContents { + #[cfg(test)] fn from_path(base: &PathBuf) -> Result { Self::from_path_with_timeout(base, Duration::from_secs(30)) }