()
| 39 | |
| 40 | impl ContainerEngine { |
| 41 | pub fn from_env() -> Result<Self, String> { |
| 42 | let resolved = resolve_container_engine( |
| 43 | std::env::var("OPENSHELL_E2E_CONTAINER_ENGINE") |
| 44 | .ok() |
| 45 | .as_deref(), |
| 46 | std::env::var("CONTAINER_ENGINE").ok().as_deref(), |
| 47 | e2e_driver().as_deref(), |
| 48 | &HostContainerEngineProbe, |
| 49 | )?; |
| 50 | |
| 51 | Ok(Self { |
| 52 | engine: resolved.engine, |
| 53 | binary: resolved.binary, |
| 54 | }) |
| 55 | } |
| 56 | |
| 57 | #[must_use] |
| 58 | pub fn command(&self) -> Command { |
nothing calls this directly
no test coverage detected