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

Function test_kv_table_custom_separator

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

Source from the content-addressed store, hash-verified

851
852 #[test]
853 fn test_kv_table_custom_separator() {
854 let table = KeyValueTable::new().separator(" = ").add("x", "1");
855
856 let output = table.to_string();
857 assert!(output.contains("x = 1"));
858 }
859
860 #[test]
861 fn test_kv_table_no_alignment() {

Callers

nothing calls this directly

Calls 2

separatorMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected