(b *testing.B)
| 431 | } |
| 432 | |
| 433 | func BenchmarkReadTool_SmallFile(b *testing.B) { |
| 434 | tool, err := NewReadTool(nil) |
| 435 | if err != nil { |
| 436 | b.Fatalf("Failed to create Read tool: %v", err) |
| 437 | } |
| 438 | |
| 439 | helper := NewTestHelper(&testing.T{}) |
| 440 | defer helper.CleanupAll() |
| 441 | |
| 442 | filePath := helper.CreateTempFile("benchmark.txt", "Small benchmark content") |
| 443 | |
| 444 | input := map[string]any{ |
| 445 | "file_path": filePath, |
| 446 | } |
| 447 | |
| 448 | BenchmarkTool(b, tool, input) |
| 449 | } |
| 450 | |
| 451 | func BenchmarkReadTool_LargeFile(b *testing.B) { |
| 452 | if testing.Short() { |
nothing calls this directly
no test coverage detected