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

Function test_sink_write_file

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

Source from the content-addressed store, hash-verified

925
926 #[test]
927 fn test_sink_write_file() {
928 let sink = Sink::new();
929 let mut writer = sink.write_file("/any/path", Inode::ROOT).unwrap();
930 writer.write_all(b"test").unwrap();
931 }
932
933 #[test]
934 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