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

Function test_verify_minimal

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

Source from the content-addressed store, hash-verified

468
469#[test]
470fn test_verify_minimal() {
471 let (buf, expected_hash) = write_minimal_change();
472 let mut cursor = Cursor::new(&buf);
473 let mut reader = ChangeReader::open(&mut cursor).unwrap();
474
475 reader.read_all_sections().unwrap();
476 let computed_hash = reader.verify().unwrap();
477
478 assert_eq!(computed_hash, expected_hash);
479}
480
481#[test]
482fn test_verify_full() {

Callers

nothing calls this directly

Calls 4

write_minimal_changeFunction · 0.85
read_all_sectionsMethod · 0.80
unwrapMethod · 0.45
verifyMethod · 0.45

Tested by

no test coverage detected