(name: &str)
| 484 | use super::{edit_file, glob_search, grep_search, read_file, write_file, GrepSearchInput}; |
| 485 | |
| 486 | fn temp_path(name: &str) -> std::path::PathBuf { |
| 487 | let unique = SystemTime::now() |
| 488 | .duration_since(UNIX_EPOCH) |
| 489 | .expect("time should move forward") |
| 490 | .as_nanos(); |
| 491 | std::env::temp_dir().join(format!("clawd-native-{name}-{unique}")) |
| 492 | } |
| 493 | |
| 494 | #[test] |
| 495 | fn reads_and_writes_files() { |