()
| 345 | |
| 346 | #[test] |
| 347 | fn 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] |
| 361 | fn table_hoists_constant_columns() { |
nothing calls this directly
no test coverage detected