Skip to content

Commit 5db3ae2

Browse files
committed
test: Auto-redact file number
1 parent d899ce7 commit 5db3ae2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/cargo-test-support/src/compare.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ fn add_common_redactions(subs: &mut snapbox::Redactions) {
164164
regex!("; finished in (?<redacted>[0-9]+(\\.[0-9]+))s"),
165165
)
166166
.unwrap();
167+
subs.insert(
168+
"[FILE_NUM]",
169+
regex!(r"\[(PACKAGED|REMOVED|SUMMARY)\] (?<redacted>[0-9]+) files"),
170+
)
171+
.unwrap();
167172
subs.insert(
168173
"[FILE_SIZE]",
169174
regex!("(?<redacted>[0-9]+(\\.[0-9]+)([a-zA-Z]i)?)B"),

0 commit comments

Comments
 (0)