()
| 468 | |
| 469 | #[test] |
| 470 | fn 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] |
| 482 | fn test_verify_full() { |
nothing calls this directly
no test coverage detected