(id: &str, satisfies: &[&str])
| 488 | } |
| 489 | |
| 490 | fn task(id: &str, satisfies: &[&str]) -> Task { |
| 491 | Task { |
| 492 | type_: NodeType::Task.as_str().to_string(), |
| 493 | id: id.to_string(), |
| 494 | text: "a work item".to_string(), |
| 495 | task_status: "open".to_string(), |
| 496 | touches_file: Vec::new(), |
| 497 | satisfies: satisfies |
| 498 | .iter() |
| 499 | .map(|s| s.to_string()) |
| 500 | .collect::<Vec<_>>() |
| 501 | .into(), |
| 502 | } |
| 503 | } |
| 504 | |
| 505 | /// A minimal, fully attested Intent that conforms — the base for mutation. |
| 506 | fn attested_base() -> CanonicalNode { |