()
| 960 | |
| 961 | #[test] |
| 962 | fn test_intent_show() { |
| 963 | let dir = tempdir().unwrap(); |
| 964 | let repo = init_repo_with_vault(dir.path()); |
| 965 | |
| 966 | let result = repo.vault_intent_create(create_opts("Show me")).unwrap(); |
| 967 | |
| 968 | let entry = repo.vault_intent_show(&result.id).unwrap(); |
| 969 | assert_eq!(entry.entry_type, VaultEntryType::Intent); |
| 970 | let content = String::from_utf8_lossy(&entry.content_bytes); |
| 971 | assert!(content.contains("# Show me")); |
| 972 | } |
| 973 | |
| 974 | #[test] |
| 975 | fn test_intent_update() { |
nothing calls this directly
no test coverage detected