()
| 1620 | |
| 1621 | #[test] |
| 1622 | fn test_intent_show() { |
| 1623 | let dir = tempdir().unwrap(); |
| 1624 | let repo = init_repo_with_vault(dir.path()); |
| 1625 | |
| 1626 | let result = repo.vault_intent_create(create_opts("Show me")).unwrap(); |
| 1627 | |
| 1628 | let entry = repo.vault_intent_show(&result.id).unwrap(); |
| 1629 | assert_eq!(entry.entry_type, VaultEntryType::Intent); |
| 1630 | let content = String::from_utf8_lossy(&entry.content_bytes); |
| 1631 | assert!(content.contains("# Show me")); |
| 1632 | } |
| 1633 | |
| 1634 | #[test] |
| 1635 | fn test_intent_update() { |
nothing calls this directly
no test coverage detected