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

Function test_large_file

atomic-core/src/output/memory.rs:1201–1208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1199
1200 #[test]
1201 fn test_large_file() {
1202 let wc = Memory::new();
1203 let large_data = vec![0u8; 1_000_000]; // 1MB
1204 wc.add_file("large.bin", &large_data);
1205
1206 let contents = wc.get_file_contents("large.bin").unwrap();
1207 assert_eq!(contents.len(), 1_000_000);
1208 }
1209
1210 #[test]
1211 fn test_deeply_nested_path() {

Callers

nothing calls this directly

Calls 3

get_file_contentsMethod · 0.80
add_fileMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected