Skip to content

Commit

Permalink
fix: remedy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMochan committed Oct 21, 2024
1 parent 82fdee4 commit f96abd0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
15 changes: 0 additions & 15 deletions rig-core/src/loaders/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
14 changes: 0 additions & 14 deletions rig-core/src/loaders/pdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

0 comments on commit f96abd0

Please sign in to comment.