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

Function test_open_truncated

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

Source from the content-addressed store, hash-verified

224
225#[test]
226fn test_open_truncated() {
227 let buf = vec![0u8; 10]; // way too short
228 let mut cursor = Cursor::new(&buf);
229
230 let result = ChangeReader::open(&mut cursor);
231 assert!(result.is_err());
232}
233
234// ── Reading Sections ───────────────────────────────────────────
235

Callers

nothing calls this directly

Calls 1

openFunction · 0.85

Tested by

no test coverage detected