You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// * `env`: An environment variable that provides context for the function.
866
+
// * `args`: The arguments passed to the test. This could include things like the flags, config etc.
867
+
// * `prepare_files_callback`: A callback function that prepares the files needed for the test. Its used to remove/retain tests giving Error to run various rust test suits.
868
+
// * `should_run_test_callback`: An optional callback function that determines whether a test should be run or not. Used to run tests following specific conditions by defining conditions in bool returning function and sending it as an argument.
869
+
// * `test_type`: A string that indicates the type of the test being run.
870
+
//
863
871
fntest_rustc_inner<F>(
864
872
env:&Env,
865
873
args:&TestArg,
@@ -881,7 +889,9 @@ where
881
889
}
882
890
883
891
if test_type == "ui"{
892
+
// uses contains_ui_error_patterns function being sent as callback to run only only error pattern tests
884
893
ifletSome(callback) = should_run_test_callback {
894
+
// Redefining walk_dir to handle subdirectories
885
895
fnwalk_dir<F,G>(
886
896
dir_path:PathBuf,
887
897
dir_callback:F,
@@ -955,9 +965,9 @@ where
955
965
returnOk(());
956
966
}
957
967
let path_str = file_path.display().to_string().replace("\\","/");
0 commit comments