MCPcopy Create free account
hub / github.com/codehamr/codehamr / TestResolvedKeyPassesLiteralThrough

Function TestResolvedKeyPassesLiteralThrough

internal/config/config_test.go:680–685  ·  view source on GitHub ↗

TestResolvedKeyPassesLiteralThrough: a plaintext key with no $-references must pass through unchanged so existing configs keep working.

(t *testing.T)

Source from the content-addressed store, hash-verified

678// TestResolvedKeyPassesLiteralThrough: a plaintext key with no $-references
679// must pass through unchanged so existing configs keep working.
680func 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.

Callers

nothing calls this directly

Calls 1

ResolvedKeyMethod · 0.95

Tested by

no test coverage detected