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

Function test_read_file_appends

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

Source from the content-addressed store, hash-verified

856
857 #[test]
858 fn test_read_file_appends() {
859 let wc = Memory::new();
860 wc.add_file("test.txt", b"world");
861
862 let mut buffer = b"hello ".to_vec();
863 wc.read_file("test.txt", &mut buffer).unwrap();
864 assert_eq!(buffer, b"hello world");
865 }
866
867 #[test]
868 fn test_read_file_not_found() {

Callers

nothing calls this directly

Calls 3

add_fileMethod · 0.45
unwrapMethod · 0.45
read_fileMethod · 0.45

Tested by

no test coverage detected