Expand description
Process environment with a thread-local overlay for tests.
Production reads std::env. Tests call override_var so they never
need set_var / remove_var, which are unsafe in edition 2024.
Functionsยง
- clear_
override - Drop the overlay for
keyso later reads use the real process environment. - override_
var - Pretend
keyisvalue(Nonemeans unset) on this thread. - var
- Read
key, honouring a test overlay if one is set on this thread.