Skip to content

Commit 055f75e

Browse files
committed
chore: remove duplciate tests
1 parent 389b033 commit 055f75e

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

src/template/mod.rs

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -20,43 +20,3 @@ pub mod wrappers;
2020
// Re-export commonly used items
2121
pub use engine::{TemplateEngine, TemplateEngineError};
2222
pub use file_ops::{copy_file_with_dir_creation, write_file_with_dir_creation, FileOperationError};
23-
24-
#[cfg(test)]
25-
mod tests {
26-
use super::*;
27-
use tempfile::TempDir;
28-
29-
#[test]
30-
fn test_copy_file_with_dir_creation() -> anyhow::Result<()> {
31-
let temp_dir = TempDir::new()?;
32-
let source_file = temp_dir.path().join("source.txt");
33-
let dest_file = temp_dir.path().join("subdir/dest.txt");
34-
35-
std::fs::write(&source_file, "test content")?;
36-
37-
copy_file_with_dir_creation(&source_file, &dest_file)?;
38-
39-
let content = std::fs::read_to_string(&dest_file)?;
40-
assert_eq!(content, "test content");
41-
42-
Ok(())
43-
}
44-
45-
#[test]
46-
fn test_build_directory_creation() -> anyhow::Result<()> {
47-
let temp_dir = TempDir::new()?;
48-
let source_file = temp_dir.path().join("source.txt");
49-
let dest_file = temp_dir.path().join("build/subdir/deep/dest.txt");
50-
51-
std::fs::write(&source_file, "build test")?;
52-
53-
// This should create all necessary parent directories
54-
copy_file_with_dir_creation(&source_file, &dest_file)?;
55-
56-
assert!(dest_file.exists());
57-
let content = std::fs::read_to_string(&dest_file)?;
58-
assert_eq!(content, "build test");
59-
60-
Ok(())
61-
}
62-
}

0 commit comments

Comments
 (0)