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

Function test_verify_full

atomic-core/src/change/format_v3/reader/tests.rs:482–491  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

480
481#[test]
482fn test_verify_full() {
483 let (buf, expected_hash) = write_full_change();
484 let mut cursor = Cursor::new(&buf);
485 let mut reader = ChangeReader::open(&mut cursor).unwrap();
486
487 reader.read_all_sections().unwrap();
488 let computed_hash = reader.verify().unwrap();
489
490 assert_eq!(computed_hash, expected_hash);
491}
492
493#[test]
494fn test_verify_after_skipping_all() {

Callers

nothing calls this directly

Calls 4

write_full_changeFunction · 0.85
read_all_sectionsMethod · 0.80
unwrapMethod · 0.45
verifyMethod · 0.45

Tested by

no test coverage detected