MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / normalized_env

Function normalized_env

e2e/rust/src/harness/container.rs:185–190  ·  view source on GitHub ↗
(value: Option<&str>)

Source from the content-addressed store, hash-verified

183}
184
185fn normalized_env(value: Option<&str>) -> Option<String> {
186 value
187 .map(str::trim)
188 .filter(|value| !value.is_empty())
189 .map(str::to_ascii_lowercase)
190}
191
192fn validate_container_engine(name: &str, value: String) -> Result<String, String> {
193 match value.as_str() {

Callers 2

resolve_container_engineFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected