MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestResolve_unknownProvider

Function TestResolve_unknownProvider

internal/agent/resolve_test.go:153–161  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

151}
152
153func TestResolve_unknownProvider(t *testing.T) {
154 _, err := Resolve("typo", "", nil)
155 if err == nil {
156 t.Fatal("Resolve(typo) expected error, got nil")
157 }
158 if !strings.Contains(err.Error(), "typo") {
159 t.Errorf("error should mention the bad provider name: %v", err)
160 }
161}
162
163func TestCheckInstalled_notFound(t *testing.T) {
164 // Use a path that does not exist

Callers

nothing calls this directly

Calls 1

ResolveFunction · 0.85

Tested by

no test coverage detected