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

Function info_string

e2e/rust/tests/gpu/device_selection.rs:146–149  ·  view source on GitHub ↗
(info: &'a Value, keys: &[&str])

Source from the content-addressed store, hash-verified

144}
145
146fn info_string<'a>(info: &'a Value, keys: &[&str]) -> Option<&'a str> {
147 keys.iter()
148 .find_map(|key| info.get(*key).and_then(Value::as_str))
149}
150
151fn text_reports_wsl2(value: &str) -> bool {
152 let value = value.to_ascii_lowercase();

Callers 1

docker_info_reports_wsl2Function · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected