mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03: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)"));
|
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]
|
#[test]
|
||||||
pub fn test_show_files_by_regex_match_lots() {
|
pub fn test_show_files_by_regex_match_lots() {
|
||||||
// Check we can see '.rs' files in the tests directory
|
// Check we can see '.rs' files in the tests directory
|
||||||
|
|||||||
Reference in New Issue
Block a user