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

Function TestSaveTightensPreexistingLoosePerms

internal/config/config_test.go:755–783  ·  view source on GitHub ↗

TestSaveTightensPreexistingLoosePerms covers the upgrade path fresh-bootstrap misses: a config.yaml from an older world-readable codehamr (or a hand-edit) starts at 0o644, and os.WriteFile preserves an existing file's mode, so Save would rewrite the bytes (including a fresh hamrpass token) while lea

(t *testing.T)

Source from the content-addressed store, hash-verified

Callers

nothing calls this directly

Calls 3

BootstrapFunction · 0.85
EnsureHamrpassMethod · 0.80
SaveMethod · 0.80

Tested by

no test coverage detected