()
| 480 | |
| 481 | #[test] |
| 482 | fn 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] |
| 494 | fn test_verify_after_skipping_all() { |
nothing calls this directly
no test coverage detected