(t *testing.T)
| 376 | } |
| 377 | |
| 378 | func TestFirstToolCallExamplePicksBash(t *testing.T) { |
| 379 | tools := []official.Tool{ |
| 380 | {Type: "function", Function: official.ToolFunction{Name: "glob"}}, |
| 381 | {Type: "function", Function: official.ToolFunction{Name: "bash"}}, |
| 382 | } |
| 383 | ex := FirstToolCallExample(tools, "/tmp") |
| 384 | if !strings.Contains(ex, `"bash"`) { |
| 385 | t.Fatalf("ex = %q", ex) |
| 386 | } |
| 387 | } |
| 388 | |
| 389 | func TestFirstToolCallExamplePicksFirst(t *testing.T) { |
| 390 | tools := []official.Tool{ |
nothing calls this directly
no test coverage detected