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

Function test_context

crates/openshell-server/src/compute/driver_config.rs:246–250  ·  view source on GitHub ↗
(file: Option<&config_file::ConfigFile>)

Source from the content-addressed store, hash-verified

244 use std::collections::BTreeMap;
245
246 fn test_context(file: Option<&config_file::ConfigFile>) -> DriverStartupContext<'_> {
247 static EMPTY_ENDPOINT_OVERRIDES: std::sync::LazyLock<BTreeMap<String, PathBuf>> =
248 std::sync::LazyLock::new(BTreeMap::new);
249 test_context_with_endpoint_overrides(file, &EMPTY_ENDPOINT_OVERRIDES)
250 }
251
252 fn test_context_with_endpoint_overrides<'a>(
253 file: Option<&'a config_file::ConfigFile>,

Tested by

no test coverage detected