File tree 1 file changed +7
-14
lines changed
1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change 41
41
42
42
use libtest_mimic:: Trial ;
43
43
44
- pub use snapbox:: assert:: Action ;
45
44
pub use snapbox:: data:: DataFormat ;
46
45
pub use snapbox:: Data ;
47
46
@@ -102,19 +101,11 @@ where
102
101
self
103
102
}
104
103
105
- /// Read the failure action from an environment variable
106
- pub fn action_env ( mut self , var_name : & str ) -> Self {
107
- self . config = self . config . action_env ( var_name) ;
108
- self
109
- }
110
-
111
- /// Override the failure action
112
- pub fn action ( mut self , action : Action ) -> Self {
113
- self . config = self . config . action ( action) ;
114
- self
115
- }
116
-
117
104
/// Customize the assertion behavior
105
+ ///
106
+ /// Includes
107
+ /// - Configuring redactions
108
+ /// - Override updating environment vaeiable
118
109
pub fn with_assert ( mut self , config : snapbox:: Assert ) -> Self {
119
110
self . config = config;
120
111
self
@@ -156,7 +147,9 @@ where
156
147
config. try_eq ( case. expected . clone ( ) , actual, Some ( & case. name ) ) ?;
157
148
Ok ( ( ) )
158
149
} )
159
- . with_ignored_flag ( shared_config. selected_action ( ) == Action :: Ignore )
150
+ . with_ignored_flag (
151
+ shared_config. selected_action ( ) == snapbox:: assert:: Action :: Ignore ,
152
+ )
160
153
} )
161
154
. collect ( ) ;
162
155
You can’t perform that action at this time.
0 commit comments