fix: resolve import paths in test files and remove deprecated tests.rs

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-14 12:00:50 -03:00
parent 9142cdde2d
commit fde369c5d9
6 changed files with 6 additions and 23 deletions

View File

@@ -1,18 +1 @@
#[cfg(test)] // This file is deprecated. Tests have been moved to the modular structure in src/tests/
mod tests {
// Import the modules we need for testing
use crate::compression_engine::{self, CompressionType};
use std::str::FromStr;
mod compression_tests {
use super::*;
// Tests will be moved to separate files
}
mod compression_type_tests {
use super::*;
// Tests will be moved to separate files
}
}

View File

@@ -2,7 +2,7 @@
mod tests { mod tests {
use tempfile::tempdir; use tempfile::tempdir;
use std::io::Write; use std::io::Write;
use crate::compression_engine::gzip::CompressionEngineGZip; use keep::compression_engine::gzip::CompressionEngineGZip;
#[test] #[test]
fn test_compression_engine_gzip() { fn test_compression_engine_gzip() {

View File

@@ -2,7 +2,7 @@
mod tests { mod tests {
use tempfile::tempdir; use tempfile::tempdir;
use std::io::Write; use std::io::Write;
use crate::compression_engine::lz4::CompressionEngineLZ4; use keep::compression_engine::lz4::CompressionEngineLZ4;
#[test] #[test]
fn test_compression_engine_lz4() { fn test_compression_engine_lz4() {

View File

@@ -2,7 +2,7 @@
mod tests { mod tests {
use tempfile::tempdir; use tempfile::tempdir;
use std::io::Write; use std::io::Write;
use crate::compression_engine::none::CompressionEngineNone; use keep::compression_engine::none::CompressionEngineNone;
#[test] #[test]
fn test_compression_engine_none() { fn test_compression_engine_none() {

View File

@@ -1,6 +1,6 @@
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::compression_engine::CompressionType; use keep::compression_engine::CompressionType;
use std::str::FromStr; use std::str::FromStr;
#[test] #[test]

View File

@@ -1,6 +1,6 @@
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::compression_engine::{self, CompressionType}; use keep::compression_engine::{self, CompressionType};
#[test] #[test]
fn test_compression_engine_factory() { fn test_compression_engine_factory() {