(d: &Directive, human_key: &str, n: usize)
| 139 | } |
| 140 | |
| 141 | fn lift_ac(d: &Directive, human_key: &str, n: usize) -> Result<AcceptanceCriterion> { |
| 142 | let local = |
| 143 | d.id.clone() |
| 144 | .unwrap_or_else(|| format!("{}-ac-{n}", slug(human_key))); |
| 145 | Ok(AcceptanceCriterion { |
| 146 | type_: NodeType::AcceptanceCriterion.as_str().to_string(), |
| 147 | id: as_urn("ac", &local), |
| 148 | text: d.body.clone(), |
| 149 | ac_status: d.attr("status").unwrap_or("open").to_string(), |
| 150 | verified_by: d.attr("verifiedBy").map(str::to_string), |
| 151 | evidence: d.attr("evidence").map(str::to_string), |
| 152 | }) |
| 153 | } |
| 154 | |
| 155 | fn lift_task(d: &Directive, human_key: &str, n: usize) -> Task { |
| 156 | let local = |
no test coverage detected