(output: &[u8])
| 62 | } |
| 63 | |
| 64 | fn parse_forensic_digest(output: &[u8]) -> String { |
| 65 | let text = String::from_utf8_lossy(output); |
| 66 | let line = text |
| 67 | .lines() |
| 68 | .find(|line| line.trim_start().starts_with("refs:") && line.contains("digest ")) |
| 69 | .expect("forensic refs digest line"); |
| 70 | line.split("digest ") |
| 71 | .nth(1) |
| 72 | .expect("digest suffix") |
| 73 | .trim_end_matches(')') |
| 74 | .to_string() |
| 75 | } |
| 76 | |
| 77 | fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output { |
| 78 | Command::new(ATOMIC_BIN) |
no test coverage detected