MCPcopy Create free account
hub / github.com/github/copilot-sdk / TestToolSet_addBuiltInVariadic

Function TestToolSet_addBuiltInVariadic

go/toolset_test.go:36–42  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

34}
35
36func TestToolSet_addBuiltInVariadic(t *testing.T) {
37 items := NewToolSet().AddBuiltIn("bash", "view").ToSlice()
38 want := []string{"builtin:bash", "builtin:view"}
39 if !reflect.DeepEqual(items, want) {
40 t.Errorf("got %v, want %v", items, want)
41 }
42}
43
44func TestToolSet_toSliceReturnsDefensiveCopy(t *testing.T) {
45 set := NewToolSet().AddBuiltIn("bash")

Callers

nothing calls this directly

Calls 3

NewToolSetFunction · 0.85
ToSliceMethod · 0.80
AddBuiltInMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…