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

Function test_column_builder

atomic-cli/src/output/table.rs:678–688  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

676
677 #[test]
678 fn test_column_builder() {
679 let col = Column::new("Value")
680 .align(Alignment::Right)
681 .min_width(10)
682 .max_width(50);
683
684 assert_eq!(col.header, "Value");
685 assert_eq!(col.alignment, Alignment::Right);
686 assert_eq!(col.min_width, 10);
687 assert_eq!(col.max_width, 50);
688 }
689
690 // -------------------------------------------------------------------------
691 // Row Tests

Callers

nothing calls this directly

Calls 3

max_widthMethod · 0.80
min_widthMethod · 0.80
alignMethod · 0.80

Tested by

no test coverage detected