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 @@ -97,6 +97,11 @@ pub fn assert_ui() -> snapbox::Assert {
97
97
regex:: Regex :: new ( "(?<redacted>[0-9]+(\\ .[0-9]+)([a-zA-Z]i)?)B" ) . unwrap ( ) ,
98
98
)
99
99
. unwrap ( ) ;
100
+ subs. insert (
101
+ "[HASH]" ,
102
+ regex:: Regex :: new ( "home/\\ .cargo/registry/src/-(?<redacted>[a-z0-9]+)" ) . unwrap ( ) ,
103
+ )
104
+ . unwrap ( ) ;
100
105
snapbox:: Assert :: new ( )
101
106
. action_env ( snapbox:: assert:: DEFAULT_ACTION_ENV )
102
107
. redact_with ( subs)
@@ -156,6 +161,11 @@ pub fn assert_e2e() -> snapbox::Assert {
156
161
regex:: Regex :: new ( "(?<redacted>[0-9]+(\\ .[0-9]+)([a-zA-Z]i)?)B" ) . unwrap ( ) ,
157
162
)
158
163
. unwrap ( ) ;
164
+ subs. insert (
165
+ "[HASH]" ,
166
+ regex:: Regex :: new ( "home/\\ .cargo/registry/src/-(?<redacted>[a-z0-9]+)" ) . unwrap ( ) ,
167
+ )
168
+ . unwrap ( ) ;
159
169
snapbox:: Assert :: new ( )
160
170
. action_env ( snapbox:: assert:: DEFAULT_ACTION_ENV )
161
171
. redact_with ( subs)
You can’t perform that action at this time.
0 commit comments