(
template: &DriverSandboxTemplate,
enable_bind_mounts: bool,
)
| 1756 | |
| 1757 | #[cfg(test)] |
| 1758 | fn docker_driver_config( |
| 1759 | template: &DriverSandboxTemplate, |
| 1760 | enable_bind_mounts: bool, |
| 1761 | ) -> Result<DockerSandboxDriverConfig, Status> { |
| 1762 | let config = |
| 1763 | DockerSandboxDriverConfig::from_template(template).map_err(Status::invalid_argument)?; |
| 1764 | validate_docker_driver_mounts(&config.mounts, enable_bind_mounts)?; |
| 1765 | Ok(config) |
| 1766 | } |
| 1767 | |
| 1768 | /// Collect user-supplied bind mounts as string-format binds. |
| 1769 | /// |
no test coverage detected