TestResolvedKeyPassesLiteralThrough: a plaintext key with no $-references must pass through unchanged so existing configs keep working.
(t *testing.T)
| 678 | // TestResolvedKeyPassesLiteralThrough: a plaintext key with no $-references |
| 679 | // must pass through unchanged so existing configs keep working. |
| 680 | func TestResolvedKeyPassesLiteralThrough(t *testing.T) { |
| 681 | p := &Profile{Key: "sk-literal-abc"} |
| 682 | if got := p.ResolvedKey(); got != "sk-literal-abc" { |
| 683 | t.Fatalf("ResolvedKey() = %q, want sk-literal-abc", got) |
| 684 | } |
| 685 | } |
| 686 | |
| 687 | // TestResolvedKeyUnsetEnvYieldsEmpty: ${VAR} with VAR unset expands to "", |
| 688 | // matching the "no key" branch (keyless local Ollama) without a panic. |
nothing calls this directly
no test coverage detected