(id: &str, satisfies: &[&str])
| 346 | } |
| 347 | |
| 348 | fn task(id: &str, satisfies: &[&str]) -> Task { |
| 349 | Task { |
| 350 | type_: NodeType::Task.as_str().to_string(), |
| 351 | id: id.to_string(), |
| 352 | text: "a work item".to_string(), |
| 353 | task_status: "open".to_string(), |
| 354 | touches_file: Vec::new(), |
| 355 | satisfies: satisfies |
| 356 | .iter() |
| 357 | .map(|s| s.to_string()) |
| 358 | .collect::<Vec<_>>() |
| 359 | .into(), |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | /// A minimal, fully attested Intent that conforms — the base for mutation. |
| 364 | fn attested_base() -> CanonicalNode { |