(b *testing.B)
| 445 | } |
| 446 | |
| 447 | func BenchmarkGrepTool_ComplexPattern(b *testing.B) { |
| 448 | if testing.Short() { |
| 449 | b.Skip("Skipping complex pattern benchmark in short mode") |
| 450 | } |
| 451 | |
| 452 | tool, err := NewGrepTool(nil) |
| 453 | if err != nil { |
| 454 | b.Fatalf("Failed to create Grep tool: %v", err) |
| 455 | } |
| 456 | |
| 457 | input := map[string]any{ |
| 458 | "pattern": "(func|type|struct)\\s+\\w+", |
| 459 | "file_type": "go", |
| 460 | "output_mode": "content", |
| 461 | "line_numbers": true, |
| 462 | "max_results": 50, |
| 463 | } |
| 464 | |
| 465 | BenchmarkTool(b, tool, input) |
| 466 | } |
nothing calls this directly
no test coverage detected