(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func TestToolSet_emitsSourceQualifiedStrings(t *testing.T) { |
| 15 | items := NewToolSet(). |
| 16 | AddBuiltIn("bash"). |
| 17 | AddBuiltIn("*"). |
| 18 | AddCustom("my_tool"). |
| 19 | AddCustom("*"). |
| 20 | AddMCP("github-list_issues"). |
| 21 | AddMCP("*"). |
| 22 | ToSlice() |
| 23 | want := []string{ |
| 24 | "builtin:bash", |
| 25 | "builtin:*", |
| 26 | "custom:my_tool", |
| 27 | "custom:*", |
| 28 | "mcp:github-list_issues", |
| 29 | "mcp:*", |
| 30 | } |
| 31 | if !reflect.DeepEqual(items, want) { |
| 32 | t.Errorf("got %v, want %v", items, want) |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | func TestToolSet_addBuiltInVariadic(t *testing.T) { |
| 37 | items := NewToolSet().AddBuiltIn("bash", "view").ToSlice() |
nothing calls this directly
no test coverage detected
searching dependent graphs…