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

Function TestReexecGuardOverridesPreexistingValue

cmd/codehamr/main_test.go:41–47  ·  view source on GitHub ↗

TestReexecGuardOverridesPreexistingValue pins the loop-guard env semantics maybeSelfUpdate relies on: the re-exec'd child must see CODEHAMR_NO_UPDATE_CHECK=="1" even when a user already exported a different value. os.Setenv (the fix) overwrites in place; the old append(os.Environ(),…) left the stale

(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

no outgoing calls

Tested by

no test coverage detected