yinwm
88014ecaff
feat: US-013 - Add FilesystemTool tests
Added comprehensive test coverage for FilesystemTool (ReadFileTool, WriteFileTool, ListDirTool) with 10 test cases:
- TestFilesystemTool_ReadFile_Success: Verifies file content goes to ForLLM
- TestFilesystemTool_ReadFile_NotFound: Verifies error handling for missing files
- TestFilesystemTool_ReadFile_MissingPath: Verifies missing parameter handling
- TestFilesystemTool_WriteFile_Success: Verifies SilentResult behavior
- TestFilesystemTool_WriteFile_CreateDir: Verifies automatic directory creation
- TestFilesystemTool_WriteFile_MissingPath: Verifies missing path parameter handling
- TestFilesystemTool_WriteFile_MissingContent: Verifies missing content parameter handling
- TestFilesystemTool_ListDir_Success: Verifies directory listing functionality
- TestFilesystemTool_ListDir_NotFound: Verifies error handling for invalid paths
- TestFilesystemTool_ListDir_DefaultPath: Verifies default to current directory
FilesystemTool implementation already conforms to ToolResult specification:
- ReadFile/ListDir return NewToolResult (ForLLM only, ForUser empty)
- WriteFile returns SilentResult (Silent=true, ForUser empty)
- Errors return ErrorResult with IsError=true
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 19:53:00 +08:00
..
2026-02-12 19:49:36 +08:00
2026-02-11 11:41:13 -06:00
2026-02-09 19:20:19 +08:00
2026-02-12 12:46:28 +08:00
2026-02-12 11:59:05 +08:00
2026-02-11 20:31:41 +08:00
2026-02-12 19:39:57 +08:00
2026-02-09 19:20:19 +08:00
2026-02-11 12:48:16 -06:00
2026-02-11 13:39:19 -06:00
2026-02-11 20:31:41 +08:00
2026-02-11 00:14:33 +08:00
2026-02-12 19:46:10 +08:00
2026-02-12 19:53:00 +08:00
2026-02-12 12:46:28 +08:00
2026-02-12 00:46:48 +08:00