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

Function test_table_custom_column_separator

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

Source from the content-addressed store, hash-verified

786
787 #[test]
788 fn test_table_custom_column_separator() {
789 let mut table = Table::new();
790 table.set_header(vec!["A", "B"]);
791 table.column_separator(" | ");
792 table.add_row(vec!["1", "2"]);
793
794 let output = table.to_string();
795 assert!(output.contains(" | "));
796 }
797
798 #[test]
799 fn test_table_empty() {

Callers

nothing calls this directly

Calls 3

set_headerMethod · 0.80
column_separatorMethod · 0.80
add_rowMethod · 0.80

Tested by

no test coverage detected