From f96abd00715c14cbdea7f5957d12db4b791a7d9c Mon Sep 17 00:00:00 2001 From: 0xMochan Date: Mon, 21 Oct 2024 09:40:49 -0500 Subject: [PATCH] fix: remedy tests --- rig-core/src/loaders/file.rs | 15 --------------- rig-core/src/loaders/pdf.rs | 14 -------------- 2 files changed, 29 deletions(-) diff --git a/rig-core/src/loaders/file.rs b/rig-core/src/loaders/file.rs index eef36d61..dd8958d1 100644 --- a/rig-core/src/loaders/file.rs +++ b/rig-core/src/loaders/file.rs @@ -99,18 +99,3 @@ impl<'a, State> FileLoader<'a, State> { self.iterator } } - -#[cfg(test)] -mod tests { - use super::FileLoader; - - #[test] - fn test_file_loader() { - let loader = FileLoader::new("src/*.rs").unwrap(); - loader - .ignore_errors() - .read_with_path() - .iter() - .for_each(|file| println!("{:?}", file)); - } -} diff --git a/rig-core/src/loaders/pdf.rs b/rig-core/src/loaders/pdf.rs index bed67122..1bbaf36f 100644 --- a/rig-core/src/loaders/pdf.rs +++ b/rig-core/src/loaders/pdf.rs @@ -140,17 +140,3 @@ impl<'a, State> PdfFileLoader<'a, State> { self.iterator } } - -#[cfg(test)] -mod tests { - use super::PdfFileLoader; - - #[test] - fn test_pdf_loader() { - let loader = PdfFileLoader::new("pdfs/*.pdf").unwrap(); - let files = loader - .read_with_path() - .iter() - .for_each(|file| println!("{:?}", file)); - } -}