(t *testing.T)
| 724 | } |
| 725 | |
| 726 | func 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 |
nothing calls this directly
no test coverage detected