()
| 1167 | |
| 1168 | #[test] |
| 1169 | fn test_intent_show() { |
| 1170 | let dir = tempdir().unwrap(); |
| 1171 | let repo = init_repo_with_vault(dir.path()); |
| 1172 | |
| 1173 | let result = repo.vault_intent_create(create_opts("Show me")).unwrap(); |
| 1174 | |
| 1175 | let entry = repo.vault_intent_show(&result.id).unwrap(); |
| 1176 | assert_eq!(entry.entry_type, VaultEntryType::Intent); |
| 1177 | let content = String::from_utf8_lossy(&entry.content_bytes); |
| 1178 | assert!(content.contains("# Show me")); |
| 1179 | } |
| 1180 | |
| 1181 | #[test] |
| 1182 | fn test_intent_update() { |
nothing calls this directly
no test coverage detected