Function reset_to_defaults

Source
pub fn reset_to_defaults()
Expand description

Reset the global configuration to only Defaults (for testing).

This clears all explicit layers (File, Env, Runtime, and TestOverride). Subsequent lookups will resolve keys entirely from their declared defaults.

Note: Should be called while holding global::lock in tests, to ensure no concurrent modifications happen.