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

Function test_sink_write_file

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

Source from the content-addressed store, hash-verified

904
905 #[test]
906 fn test_sink_write_file() {
907 let sink = Sink::new();
908 let mut writer = sink.write_file("/any/path", Inode::ROOT).unwrap();
909 writer.write_all(b"test").unwrap();
910 }
911
912 #[test]
913 fn test_sink_error_display() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
write_fileMethod · 0.45

Tested by

no test coverage detected