()
| 352 | |
| 353 | #[test] |
| 354 | fn checkpoint_roundtrip_with_buffer() { |
| 355 | let mut csr = CsrIndex::new(); |
| 356 | csr.add_edge("a", "L", "b").unwrap(); |
| 357 | // Don't compact — edges in buffer. |
| 358 | let bytes = csr.checkpoint_to_bytes().expect("no governor, cannot fail"); |
| 359 | let restored = CsrIndex::from_checkpoint(&bytes) |
| 360 | .expect("roundtrip") |
| 361 | .unwrap(); |
| 362 | assert_eq!(restored.edge_count(), 1); |
| 363 | } |
| 364 | |
| 365 | #[test] |
| 366 | fn golden_header_layout() { |
nothing calls this directly
no test coverage detected