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

Function test_output_line_empty

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

Source from the content-addressed store, hash-verified

727
728 #[test]
729 fn test_output_line_empty() {
730 // Empty span (start == end)
731 let node = GraphNode::new(
732 NodeId::new(1),
733 ChangePosition::new(0),
734 ChangePosition::new(0),
735 );
736
737 let buffer = with_writer(|writer| {
738 let result: Result<(), std::io::Error> = writer.output_line(node, |_buf| {
739 panic!("Should not be called for empty node");
740 });
741
742 assert!(result.is_ok());
743 });
744 assert!(buffer.is_empty());
745 }
746
747 // ------------------------------------------------------------------------
748 // Count Digits Tests

Callers

nothing calls this directly

Calls 2

with_writerFunction · 0.85
output_lineMethod · 0.45

Tested by

no test coverage detected