()
| 1750 | |
| 1751 | #[test] |
| 1752 | fn test_intent_update() { |
| 1753 | let dir = tempdir().unwrap(); |
| 1754 | let repo = init_repo_with_vault(dir.path()); |
| 1755 | |
| 1756 | let result = repo.vault_intent_create(create_opts("Update me")).unwrap(); |
| 1757 | |
| 1758 | let updated = repo |
| 1759 | .vault_intent_update( |
| 1760 | &result.id, |
| 1761 | IntentUpdateOptions { |
| 1762 | status: Some("in-progress".to_string()), |
| 1763 | assignee: Some("bob".to_string()), |
| 1764 | ..Default::default() |
| 1765 | }, |
| 1766 | ) |
| 1767 | .unwrap(); |
| 1768 | |
| 1769 | assert_eq!(updated.status, "in-progress"); |
| 1770 | assert_eq!(updated.assignee, Some("bob".to_string())); |
| 1771 | |
| 1772 | // Manifest should reflect update |
| 1773 | let manifest = repo.vault_manifest().unwrap(); |
| 1774 | assert_eq!(manifest.intents[&result.id].status, "in-progress"); |
| 1775 | } |
| 1776 | |
| 1777 | #[test] |
| 1778 | fn test_intent_update_preserves_reason_and_lineage_metadata() { |
nothing calls this directly
no test coverage detected