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

Function test_append_large_contents

atomic-core/src/record/builder.rs:669–677  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

667
668 #[test]
669 fn test_append_large_contents() {
670 let mut builder = RecordBuilder::new();
671
672 let large_data = vec![0u8; 1024 * 1024]; // 1MB
673 let start = builder.append_contents(&large_data);
674
675 assert_eq!(start, 0);
676 assert_eq!(builder.contents_len(), 1024 * 1024);
677 }
678
679 // GraphOp Tests
680

Callers

nothing calls this directly

Calls 1

append_contentsMethod · 0.45

Tested by

no test coverage detected