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

Function test_table_no_header_separator

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

Source from the content-addressed store, hash-verified

775
776 #[test]
777 fn test_table_no_header_separator() {
778 let mut table = Table::new();
779 table.set_header(vec!["A", "B"]);
780 table.show_header_separator(false);
781 table.add_row(vec!["1", "2"]);
782
783 let output = table.to_string();
784 assert!(!output.contains("─"));
785 }
786
787 #[test]
788 fn test_table_custom_column_separator() {

Callers

nothing calls this directly

Calls 3

set_headerMethod · 0.80
show_header_separatorMethod · 0.80
add_rowMethod · 0.80

Tested by

no test coverage detected