yinwm
e7e3f95ebe
feat: US-012 - Add ShellTool tests
Added comprehensive test coverage for ShellTool (ExecTool) with 9 test cases:
- TestShellTool_Success: Verifies successful command execution
- TestShellTool_Failure: Verifies failed command execution with IsError flag
- TestShellTool_Timeout: Verifies command timeout handling
- TestShellTool_WorkingDir: Verifies custom working directory support
- TestShellTool_DangerousCommand: Verifies safety guard blocks dangerous commands
- TestShellTool_MissingCommand: Verifies error handling for missing command
- TestShellTool_StderrCapture: Verifies stderr is captured and included
- TestShellTool_OutputTruncation: Verifies long output is truncated
- TestShellTool_RestrictToWorkspace: Verifies workspace restriction
ShellTool implementation already conforms to ToolResult specification:
- Success returns ForUser = command output
- Failure returns IsError = true
- ForLLM contains full output and exit code
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 19:52:16 +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:52:16 +08:00
2026-02-12 12:46:28 +08:00
2026-02-12 00:46:48 +08:00