File: mod.rs

package info (click to toggle)
rust-comfy-table 7.1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 612 kB
  • sloc: makefile: 2
file content (30 lines) | stat: -rw-r--r-- 640 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use comfy_table::Table;
use unicode_width::UnicodeWidthStr;

mod add_predicate;
mod alignment_test;
#[cfg(feature = "tty")]
mod combined_test;
mod constraints_test;
mod content_arrangement_test;
mod counts;
mod custom_delimiter_test;
mod edge_cases;
mod hidden_test;
#[cfg(feature = "custom_styling")]
mod inner_style_test;
mod modifiers_test;
mod padding_test;
mod presets_test;
mod property_test;
mod simple_test;
#[cfg(feature = "tty")]
mod styling_test;
mod truncation;
mod utf_8_characters;

pub fn assert_table_line_width(table: &Table, count: usize) {
    for line in table.lines() {
        assert_eq!(line.width(), count);
    }
}