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

Function new_test_runtime

crates/openshell-server/src/compute/mod.rs:2096–2113  ·  view source on GitHub ↗
(store: Arc<Store>)

Source from the content-addressed store, hash-verified

2094
2095#[cfg(test)]
2096pub async fn new_test_runtime(store: Arc<Store>) -> ComputeRuntime {
2097 ComputeRuntime {
2098 driver: Arc::new(NoopTestDriver),
2099 driver_name: "test".to_string(),
2100 shutdown_cleanup: None,
2101 startup_resume: None,
2102 _driver_process: None,
2103 default_image: "openshell/sandbox:test".to_string(),
2104 store,
2105 sandbox_index: SandboxIndex::new(),
2106 sandbox_watch_bus: SandboxWatchBus::new(),
2107 tracing_log_bus: TracingLogBus::new(),
2108 supervisor_sessions: Arc::new(SupervisorSessionRegistry::new()),
2109 sync_lock: Arc::new(Mutex::new(())),
2110 gateway_bind_addresses: Vec::new(),
2111 replica_id: "test-replica".to_string(),
2112 }
2113}
2114
2115#[cfg(test)]
2116mod tests {

Callers 4

test_stateFunction · 0.85
test_server_stateFunction · 0.85
state_with_issuerFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_stateFunction · 0.68
test_server_stateFunction · 0.68