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

Function test_open_minimal

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

Source from the content-addressed store, hash-verified

187
188#[test]
189fn test_open_minimal() {
190 let (buf, _hash) = write_minimal_change();
191 let mut cursor = Cursor::new(&buf);
192
193 let reader = ChangeReader::open(&mut cursor).unwrap();
194
195 assert_eq!(reader.file_header().hash_table_entries, 1);
196 assert_eq!(reader.hash_table().len(), 1);
197 assert_eq!(reader.remaining_sections(), 2); // HEADER + DEPS
198}
199
200#[test]
201fn test_open_full() {

Callers

nothing calls this directly

Calls 3

write_minimal_changeFunction · 0.85
openFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected