(root: &Path, body: &str)
| 20 | } |
| 21 | |
| 22 | fn 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] |
| 34 | fn compact_candidate_can_be_pulled_once_and_rejects_a_stale_revision() { |
no test coverage detected