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

Function test_empty_file

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

Source from the content-addressed store, hash-verified

1171
1172 #[test]
1173 fn test_empty_file() {
1174 let wc = Memory::new();
1175 wc.add_file("empty.txt", b"");
1176
1177 let contents = wc.get_file_contents("empty.txt").unwrap();
1178 assert!(contents.is_empty());
1179 }
1180
1181 #[test]
1182 fn test_binary_file() {

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