diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-08-14 16:17:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-14 10:17:21 +0200 |
commit | ed19e32d98ce4be126d71ef871b5c7a700f1c895 (patch) | |
tree | 04e052fd0ee43982e1c03c584bd66095873ad6e6 /cli/main.rs | |
parent | 605f6119e96fb67edad53c426f2f65793e0b1faa (diff) |
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.
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 12 |
1 files changed, 6 insertions, 6 deletions
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( |