MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_intent_show

Function test_intent_show

atomic-repository/src/repository/vault_intent.rs:1360–1370  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1358
1359 #[test]
1360 fn test_intent_show() {
1361 let dir = tempdir().unwrap();
1362 let repo = init_repo_with_vault(dir.path());
1363
1364 let result = repo.vault_intent_create(create_opts("Show me")).unwrap();
1365
1366 let entry = repo.vault_intent_show(&result.id).unwrap();
1367 assert_eq!(entry.entry_type, VaultEntryType::Intent);
1368 let content = String::from_utf8_lossy(&entry.content_bytes);
1369 assert!(content.contains("# Show me"));
1370 }
1371
1372 #[test]
1373 fn test_intent_update() {

Callers

nothing calls this directly

Calls 6

init_repo_with_vaultFunction · 0.85
create_optsFunction · 0.85
vault_intent_createMethod · 0.80
vault_intent_showMethod · 0.80
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected