MCPcopy Create free account
hub / github.com/github/gh-aw / TestGenerateToolsConfig_UsesToolsets

Function TestGenerateToolsConfig_UsesToolsets

pkg/cli/interactive_test.go:726–736  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

724}
725
726func TestGenerateToolsConfig_UsesToolsets(t *testing.T) {
727 b := &InteractiveWorkflowBuilder{Tools: []string{"github", "bash"}}
728 config := b.generateToolsConfig()
729
730 if !strings.Contains(config, "toolsets: [default]") {
731 t.Errorf("generateToolsConfig() should use toolsets for github tool\ngot:\n%s", config)
732 }
733 if strings.Contains(config, "allowed:") {
734 t.Errorf("generateToolsConfig() should not use allowed list for github tool\ngot:\n%s", config)
735 }
736}
737
738// ---------------------------------------------------------------------------
739// Non-TTY fallback tests

Callers

nothing calls this directly

Calls 2

generateToolsConfigMethod · 0.95
ErrorfMethod · 0.45

Tested by

no test coverage detected