MCPcopy Create free account
hub / github.com/diillson/chatcli / newProviderTestCLI

Function newProviderTestCLI

cli/provider_command_test.go:39–47  ·  view source on GitHub ↗

newProviderTestCLI builds a CLI backed by the package's minimalManager fake (defined in skill_model_resolve_integration_test.go).

(provider string, providers []string)

Source from the content-addressed store, hash-verified

37// newProviderTestCLI builds a CLI backed by the package's minimalManager fake
38// (defined in skill_model_resolve_integration_test.go).
39func newProviderTestCLI(provider string, providers []string) *ChatCLI {
40 return &ChatCLI{
41 logger: zap.NewNop(),
42 manager: &minimalManager{providers: providers},
43 Provider: provider,
44 Model: "m0",
45 Client: &fakeClient{provider: provider, model: "m0"},
46 }
47}
48
49func paletteDoc(line string) prompt.Document {
50 b := prompt.NewBuffer()

Callers 4

TestCommandIsPickableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected