(value: Option<&str>)
| 18 | } |
| 19 | |
| 20 | fn usable(value: Option<&str>) -> Option<String> { |
| 21 | value |
| 22 | .filter(|value| !value.is_empty() && *value != "unknown") |
| 23 | .map(str::to_owned) |
| 24 | } |
| 25 | |
| 26 | impl HookContext { |
| 27 | /// Best-effort extraction keeps invalid JSON attributable when the caller |
no test coverage detected