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

Function test_kv_table_render

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

Source from the content-addressed store, hash-verified

840
841 #[test]
842 fn test_kv_table_render() {
843 let table = KeyValueTable::new().add("Name", "Alice").add("Age", "30");
844
845 let output = table.to_string();
846 assert!(output.contains("Name"));
847 assert!(output.contains("Alice"));
848 assert!(output.contains("Age"));
849 assert!(output.contains("30"));
850 }
851
852 #[test]
853 fn test_kv_table_custom_separator() {

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected