From ed19e32d98ce4be126d71ef871b5c7a700f1c895 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Sat, 14 Aug 2021 16:17:21 +0800 Subject: refactor: normalize `is_supported_` check naming (#11698) Normalizes the naming of the functions used to determine if a path is a suitable match for the test runner and placed them both in the the fs_util module. --- cli/main.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cli/main.rs') diff --git a/cli/main.rs b/cli/main.rs index 9191ab86b..e3da6ae0f 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -1041,12 +1041,12 @@ async fn test_command( let test_modules_result = if doc { fs_util::collect_specifiers( include.clone(), - fs_util::is_supported_ext_test, + fs_util::is_supported_test_ext, ) } else { fs_util::collect_specifiers( include.clone(), - tools::test_runner::is_supported, + fs_util::is_supported_test_path, ) }; @@ -1180,7 +1180,7 @@ async fn test_command( let doc_modules = if doc { fs_util::collect_specifiers( include.clone(), - fs_util::is_supported_ext_test, + fs_util::is_supported_test_ext, )? } else { Vec::new() @@ -1194,7 +1194,7 @@ async fn test_command( let test_modules = fs_util::collect_specifiers( include.clone(), - tools::test_runner::is_supported, + fs_util::is_supported_test_path, )?; let test_modules_to_reload = test_modules @@ -1228,7 +1228,7 @@ async fn test_command( let doc_modules = if doc { fs_util::collect_specifiers( include.clone(), - fs_util::is_supported_ext_test, + fs_util::is_supported_test_ext, )? } else { Vec::new() @@ -1236,7 +1236,7 @@ async fn test_command( let test_modules = fs_util::collect_specifiers( include.clone(), - tools::test_runner::is_supported, + fs_util::is_supported_test_path, )?; test_runner::run_tests( -- cgit v1.2.3