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

Function write_memory

atomic-cli/tests/it/vault_context_integration_test.rs:22–31  ·  view source on GitHub ↗
(root: &Path, body: &str)

Source from the content-addressed store, hash-verified

20}
21
22fn write_memory(root: &Path, body: &str) {
23 let repo = Repository::open(root).expect("open repository");
24 repo.vault_store(
25 "memory/auth-decision.md",
26 VaultEntryType::Memory,
27 body.as_bytes().to_vec(),
28 r#"{"name":"auth-decision","status":"active","memoryKind":"lesson"}"#.to_string(),
29 )
30 .expect("store memory");
31}
32
33#[test]
34fn compact_candidate_can_be_pulled_once_and_rejects_a_stale_revision() {

Calls 3

openFunction · 0.85
vault_storeMethod · 0.80
as_bytesMethod · 0.45

Tested by

no test coverage detected