()
| 199 | |
| 200 | #[test] |
| 201 | fn test_open_full() { |
| 202 | let (buf, _hash) = write_full_change(); |
| 203 | let mut cursor = Cursor::new(&buf); |
| 204 | |
| 205 | let reader = ChangeReader::open(&mut cursor).unwrap(); |
| 206 | |
| 207 | assert_eq!(reader.file_header().hash_table_entries, 2); |
| 208 | assert_eq!(reader.hash_table().len(), 2); |
| 209 | // HEADER + DEPS + PROV + 2 GRAPH + 2 SEMANTIC + 3 CONTENT + UNHASHED = 11 |
| 210 | assert_eq!(reader.remaining_sections(), 11); |
| 211 | } |
| 212 | |
| 213 | #[test] |
| 214 | fn test_open_invalid_magic() { |
nothing calls this directly
no test coverage detected