(b *testing.B)
| 432 | } |
| 433 | |
| 434 | func BenchmarkGrepTool_SimplePattern(b *testing.B) { |
| 435 | tool, err := NewGrepTool(nil) |
| 436 | if err != nil { |
| 437 | b.Fatalf("Failed to create Grep tool: %v", err) |
| 438 | } |
| 439 | |
| 440 | input := map[string]any{ |
| 441 | "pattern": "func", |
| 442 | } |
| 443 | |
| 444 | BenchmarkTool(b, tool, input) |
| 445 | } |
| 446 | |
| 447 | func BenchmarkGrepTool_ComplexPattern(b *testing.B) { |
| 448 | if testing.Short() { |
nothing calls this directly
no test coverage detected