The first log line containing every needle.
(log: &'a str, needles: &[&str])
| 115 | |
| 116 | /// The first log line containing every needle. |
| 117 | fn line_with<'a>(log: &'a str, needles: &[&str]) -> &'a str { |
| 118 | log.lines() |
| 119 | .find(|line| needles.iter().all(|needle| line.contains(needle))) |
| 120 | .unwrap_or_else(|| panic!("no line with {needles:?} in:\n{log}")) |
| 121 | } |
| 122 | |
| 123 | /// A shim-enabled repository on `main`, then a commit on `feature` made |
| 124 | /// through Git so its hooks run, reconciled into Atomic. |
no test coverage detected