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

Struct fakeLLMManager

cmd/server_test.go:52–56  ·  view source on GitHub ↗

--- LLMManager double --------------------------------------------------- fakeLLMManager satisfies manager.LLMManager. Only GetClient carries real behavior — the rest are no-ops because the helper under test only calls GetClient. Keeps the test focused.

Source from the content-addressed store, hash-verified

50// real behavior — the rest are no-ops because the helper under test
51// only calls GetClient. Keeps the test focused.
52type fakeLLMManager struct {
53 clients map[string]client.LLMClient
54 errors map[string]error
55 calls atomic.Int32
56}
57
58func (f *fakeLLMManager) GetClient(provider, _ string) (client.LLMClient, error) {
59 f.calls.Add(1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected