()
| 32 | } |
| 33 | |
| 34 | fn gpu_probe_image() -> String { |
| 35 | std::env::var(GPU_PROBE_IMAGE_ENV) |
| 36 | .ok() |
| 37 | .map(|value| value.trim().to_string()) |
| 38 | .filter(|value| !value.is_empty()) |
| 39 | .unwrap_or_else(|| DEFAULT_GPU_PROBE_IMAGE.to_string()) |
| 40 | } |
| 41 | |
| 42 | fn object_string<'a>(object: &'a Map<String, Value>, key: &str) -> Option<&'a str> { |
| 43 | object |
no test coverage detected