From 779dd70a0da4bd39c25f7fe752c2197c9d7390a9 Mon Sep 17 00:00:00 2001 From: Zaki Date: Thu, 12 Mar 2026 15:21:35 -0700 Subject: [PATCH] fix: remove duplicate path_routing_tests module in memory.rs After rebase, the path_routing_tests test module appeared twice in memory.rs -- once before MemoryTreeTool and once at the end. Remove the first occurrence to fix the compilation error. Co-Authored-By: Claude Opus 4.6 --- src/tools/builtin/memory.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/tools/builtin/memory.rs b/src/tools/builtin/memory.rs index c8f5178f..dadab877 100644 --- a/src/tools/builtin/memory.rs +++ b/src/tools/builtin/memory.rs @@ -539,26 +539,6 @@ impl Tool for MemoryTreeTool { } } -#[cfg(test)] -mod path_routing_tests { - use super::looks_like_filesystem_path; - - #[test] - fn detects_filesystem_paths() { - assert!(looks_like_filesystem_path("/Users/nige/file.md")); - assert!(looks_like_filesystem_path("C:\\Users\\nige\\file.md")); - assert!(looks_like_filesystem_path("D:/work/file.md")); - assert!(looks_like_filesystem_path("~/notes.md")); - } - - #[test] - fn allows_workspace_memory_paths() { - assert!(!looks_like_filesystem_path("MEMORY.md")); - assert!(!looks_like_filesystem_path("daily/2026-03-11.md")); - assert!(!looks_like_filesystem_path("projects/alpha/notes.md")); - } -} - #[cfg(all(test, feature = "postgres"))] mod tests { use super::*;