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

Function test_binary_file

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

Source from the content-addressed store, hash-verified

1180
1181 #[test]
1182 fn test_binary_file() {
1183 let wc = Memory::new();
1184 let binary_data: Vec<u8> = (0..=255).collect();
1185 wc.add_file("binary.bin", &binary_data);
1186
1187 let contents = wc.get_file_contents("binary.bin").unwrap();
1188 assert_eq!(contents, binary_data);
1189 }
1190
1191 #[test]
1192 fn test_unicode_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