(b *testing.B)
| 359 | } |
| 360 | |
| 361 | func BenchmarkTaskTool_LaunchSubagent(b *testing.B) { |
| 362 | tool, err := NewTaskTool(nil) |
| 363 | if err != nil { |
| 364 | b.Fatalf("Failed to create Task tool: %v", err) |
| 365 | } |
| 366 | |
| 367 | input := map[string]any{ |
| 368 | "subagent_type": "general-purpose", |
| 369 | "prompt": "Benchmark task", |
| 370 | } |
| 371 | |
| 372 | BenchmarkTool(b, tool, input) |
| 373 | } |
| 374 | |
| 375 | func BenchmarkTaskTool_LaunchWithFullOptions(b *testing.B) { |
| 376 | if testing.Short() { |
nothing calls this directly
no test coverage detected