mirror of
https://github.com/bootandy/dust.git
synced 2025-12-06 12:51:10 -08:00
Tests: Add test to verify skip-total flag
This commit is contained in:
@@ -112,6 +112,17 @@ pub fn test_show_files_by_type() {
|
||||
assert!(output.contains("┌─┴ (total)"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
pub fn test_output_skip_total() {
|
||||
let output = build_command(vec![
|
||||
"--skip-total",
|
||||
"tests/test_dir/many/hello_file",
|
||||
"tests/test_dir/many/a_file",
|
||||
]);
|
||||
assert!(output.contains("hello_file"));
|
||||
assert!(!output.contains("(total)"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
pub fn test_show_files_by_regex_match_lots() {
|
||||
// Check we can see '.rs' files in the tests directory
|
||||
|
||||
Reference in New Issue
Block a user