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

Function test_read_file

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

Source from the content-addressed store, hash-verified

846
847 #[test]
848 fn test_read_file() {
849 let wc = Memory::new();
850 wc.add_file("test.txt", b"content here");
851
852 let mut buffer = Vec::new();
853 wc.read_file("test.txt", &mut buffer).unwrap();
854 assert_eq!(buffer, b"content here");
855 }
856
857 #[test]
858 fn test_read_file_appends() {

Callers

nothing calls this directly

Calls 3

add_fileMethod · 0.45
unwrapMethod · 0.45
read_fileMethod · 0.45

Tested by

no test coverage detected