()
| 1737 | |
| 1738 | #[test] |
| 1739 | fn test_intent_show() { |
| 1740 | let dir = tempdir().unwrap(); |
| 1741 | let repo = init_repo_with_vault(dir.path()); |
| 1742 | |
| 1743 | let result = repo.vault_intent_create(create_opts("Show me")).unwrap(); |
| 1744 | |
| 1745 | let entry = repo.vault_intent_show(&result.id).unwrap(); |
| 1746 | assert_eq!(entry.entry_type, VaultEntryType::Intent); |
| 1747 | let content = String::from_utf8_lossy(&entry.content_bytes); |
| 1748 | assert!(content.contains("# Show me")); |
| 1749 | } |
| 1750 | |
| 1751 | #[test] |
| 1752 | fn test_intent_update() { |
nothing calls this directly
no test coverage detected