(b *testing.B)
| 397 | } |
| 398 | |
| 399 | func BenchmarkBashTool_SimpleCommand(b *testing.B) { |
| 400 | tool, err := NewBashTool(nil) |
| 401 | if err != nil { |
| 402 | b.Fatalf("Failed to create Bash tool: %v", err) |
| 403 | } |
| 404 | |
| 405 | input := map[string]any{ |
| 406 | "command": "echo 'benchmark'", |
| 407 | } |
| 408 | |
| 409 | BenchmarkTool(b, tool, input) |
| 410 | } |
| 411 | |
| 412 | func BenchmarkBashTool_ComplexCommand(b *testing.B) { |
| 413 | if testing.Short() { |
nothing calls this directly
no test coverage detected