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

Function mustResolve

internal/agent/resolve_test.go:14–21  ·  view source on GitHub ↗
(t *testing.T, flagAgent, flagPath string, cfg *config.Config)

Source from the content-addressed store, hash-verified

12)
13
14func mustResolve(t *testing.T, flagAgent, flagPath string, cfg *config.Config) loop.Provider {
15 t.Helper()
16 p, err := Resolve(flagAgent, flagPath, cfg)
17 if err != nil {
18 t.Fatalf("Resolve(%q, %q, cfg) unexpected error: %v", flagAgent, flagPath, err)
19 }
20 return p
21}
22
23func TestResolve_priority(t *testing.T) {
24 // Default: no flag, no env, nil config -> Claude

Callers 6

TestResolve_priorityFunction · 0.85
TestResolve_envFunction · 0.85
TestResolve_normalizeFunction · 0.85
TestResolve_opencodeFunction · 0.85
TestResolve_cursorFunction · 0.85
TestResolve_configFileFunction · 0.85

Calls 1

ResolveFunction · 0.85

Tested by

no test coverage detected