MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / env_flag_enabled

Function env_flag_enabled

src/pglite/postgres_mod.rs:1959–1967  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

1957}
1958
1959fn env_flag_enabled(name: &str) -> bool {
1960 let Some(value) = std::env::var_os(name) else {
1961 return false;
1962 };
1963 !matches!(
1964 value.to_string_lossy().to_ascii_lowercase().as_str(),
1965 "" | "0" | "false" | "off" | "no"
1966 )
1967}
1968
1969fn maybe_trace_filesystem(
1970 inner: Arc<dyn virtual_fs::FileSystem + Send + Sync>,

Callers 1

fs_trace_enabledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected