(t *testing.T, flagAgent, flagPath string, cfg *config.Config)
| 12 | ) |
| 13 | |
| 14 | func 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 | |
| 23 | func TestResolve_priority(t *testing.T) { |
| 24 | // Default: no flag, no env, nil config -> Claude |
no test coverage detected