(id: &str, satisfies: &[&str])
| 472 | } |
| 473 | |
| 474 | fn task(id: &str, satisfies: &[&str]) -> Task { |
| 475 | Task { |
| 476 | type_: NodeType::Task.as_str().to_string(), |
| 477 | id: id.to_string(), |
| 478 | text: "a work item".to_string(), |
| 479 | task_status: "open".to_string(), |
| 480 | touches_file: Vec::new(), |
| 481 | satisfies: satisfies |
| 482 | .iter() |
| 483 | .map(|s| s.to_string()) |
| 484 | .collect::<Vec<_>>() |
| 485 | .into(), |
| 486 | } |
| 487 | } |
| 488 | |
| 489 | /// A minimal, fully attested Intent that conforms — the base for mutation. |
| 490 | fn attested_base() -> CanonicalNode { |