MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / table_drops_all_empty_columns

Function table_drops_all_empty_columns

src/mcp/tools/render/tests.rs:347–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

345
346#[test]
347fn table_drops_all_empty_columns() {
348 let v = json!([
349 { "name": "foo", "doc": "", "line": 1 },
350 { "name": "bar", "doc": "", "line": 2 }
351 ]);
352 let out = generic_md(&v);
353 assert!(
354 !out.contains("doc"),
355 "empty column should be dropped: {out}"
356 );
357 assert!(out.contains("| name | line |"), "got: {out}");
358}
359
360#[test]
361fn table_hoists_constant_columns() {

Callers

nothing calls this directly

Calls 1

generic_mdFunction · 0.85

Tested by

no test coverage detected