File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
crates/cargo-test-support/src Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,11 @@ pub fn assert_ui() -> snapbox::Assert {
92
92
regex:: Regex :: new ( "Finished.*in (?<redacted>[0-9]+(\\ .[0-9]+))s" ) . unwrap ( ) ,
93
93
)
94
94
. unwrap ( ) ;
95
+ subs. insert (
96
+ "[FILE_SIZE]" ,
97
+ regex:: Regex :: new ( "(?<redacted>[0-9]+(\\ .[0-9]+)([a-zA-Z]i)?)B" ) . unwrap ( ) ,
98
+ )
99
+ . unwrap ( ) ;
95
100
snapbox:: Assert :: new ( )
96
101
. action_env ( snapbox:: assert:: DEFAULT_ACTION_ENV )
97
102
. redact_with ( subs)
@@ -146,6 +151,11 @@ pub fn assert_e2e() -> snapbox::Assert {
146
151
regex:: Regex :: new ( "[FINISHED].*in (?<redacted>[0-9]+(\\ .[0-9]+))s" ) . unwrap ( ) ,
147
152
)
148
153
. unwrap ( ) ;
154
+ subs. insert (
155
+ "[FILE_SIZE]" ,
156
+ regex:: Regex :: new ( "(?<redacted>[0-9]+(\\ .[0-9]+)([a-zA-Z]i)?)B" ) . unwrap ( ) ,
157
+ )
158
+ . unwrap ( ) ;
149
159
snapbox:: Assert :: new ( )
150
160
. action_env ( snapbox:: assert:: DEFAULT_ACTION_ENV )
151
161
. redact_with ( subs)
You can’t perform that action at this time.
0 commit comments