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

Function test_write_simple

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

Source from the content-addressed store, hash-verified

524
525 #[test]
526 fn test_write_simple() {
527 let buffer = with_writer(|writer| {
528 writer.write_all(b"Hello").unwrap();
529 assert_eq!(writer.bytes_written(), 5);
530 });
531 assert_eq!(buffer, b"Hello");
532 }
533
534 #[test]
535 fn test_write_with_newlines() {

Callers

nothing calls this directly

Calls 2

with_writerFunction · 0.85
unwrapMethod · 0.45

Tested by

no test coverage detected