If any acceptance criterion on `node` carries a view-scoped verification whose LATEST view-scoped record failed, return that record's `kind` (for the finding message). `None` means the view baseline is not known to be red.
(node: &CanonicalNode)
| 60 | /// whose LATEST view-scoped record failed, return that record's `kind` (for the |
| 61 | /// finding message). `None` means the view baseline is not known to be red. |
| 62 | fn failing_view_verification(node: &CanonicalNode) -> Option<String> { |
| 63 | for ac in &node.has_acceptance_criterion { |
| 64 | // The latest view-scoped record is the last one in append order. |
| 65 | if let Some(rec) = ac |
| 66 | .verifications |
| 67 | .iter() |
| 68 | .rev() |
| 69 | .find(|v| v.scope.eq_ignore_ascii_case("view")) |
| 70 | { |
| 71 | if rec.outcome.eq_ignore_ascii_case("fail") { |
| 72 | return Some(rec.kind.clone()); |
| 73 | } |
| 74 | } |
| 75 | } |
| 76 | None |
| 77 | } |
| 78 | |
| 79 | /// Build the canonical triage report for `feature` relative to `target`. |
| 80 | pub fn build_report( |
no test coverage detected