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

Function test_flush

atomic-core/src/output/repo/writer.rs:768–774  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

766
767 #[test]
768 fn test_flush() {
769 let buffer = with_writer(|writer| {
770 writer.write_all(b"test").unwrap();
771 writer.flush().unwrap();
772 });
773 assert_eq!(buffer, b"test");
774 }
775
776 // ------------------------------------------------------------------------
777 // Multiple Conflicts Tests

Callers

nothing calls this directly

Calls 3

with_writerFunction · 0.85
unwrapMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected