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

Function test_sink_read_file

atomic-core/src/output/traits.rs:849–854  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

847
848 #[test]
849 fn test_sink_read_file() {
850 let sink = Sink::new();
851 let mut buffer = Vec::new();
852 sink.read_file("/any/path", &mut buffer).unwrap();
853 assert!(buffer.is_empty());
854 }
855
856 #[test]
857 fn test_sink_modified_time() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
read_fileMethod · 0.45

Tested by

no test coverage detected