()
| 747 | |
| 748 | #[test] |
| 749 | fn test_table_render_basic() { |
| 750 | let mut table = Table::new(); |
| 751 | table.set_header(vec!["Name", "Value"]); |
| 752 | table.add_row(vec!["foo", "42"]); |
| 753 | |
| 754 | let output = table.to_string(); |
| 755 | assert!(output.contains("Name")); |
| 756 | assert!(output.contains("Value")); |
| 757 | assert!(output.contains("foo")); |
| 758 | assert!(output.contains("42")); |
| 759 | } |
| 760 | |
| 761 | #[test] |
| 762 | fn test_table_render_with_alignment() { |
nothing calls this directly
no test coverage detected