()
| 78 | impl 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected