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

Function TestSetActiveRevertsOnSaveFailure

internal/config/config_test.go:446–462  ·  view source on GitHub ↗

TestSetActiveRevertsOnSaveFailure guards in-memory/on-disk drift on Save failure. If SetActive mutates Active before a failed Save, ActiveProfile() reads the wrong endpoint while config.yaml still names the old profile, and restart silently undoes the switch. SetActive must roll back on Save failure

(t *testing.T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

SetActiveMethod · 0.95

Tested by

no test coverage detected