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

Method new

crates/openshell-server/src/test_support.rs:80–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78impl FakeComputeDriver {
79 #[must_use]
80 pub fn new() -> Self {
81 Self {
82 state: Arc::new(Mutex::new(FakeComputeDriverState {
83 driver_name: "fake-compute-driver".to_string(),
84 driver_version: "test".to_string(),
85 default_image: "openshell/sandbox:test".to_string(),
86 sandboxes: HashMap::new(),
87 calls: Vec::new(),
88 })),
89 }
90 }
91
92 #[must_use]
93 pub fn with_driver_name(self, driver_name: impl Into<String>) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected