diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-06-27 16:54:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-27 16:54:09 -0400 |
commit | e1c90963fbbf6571ae1b66971b83159681928ec3 (patch) | |
tree | 4bbf86a50776a512e966a9efba3cef044b00152d /cli/lsp/testing/execution.rs | |
parent | 681bb49d0df0865a6564741544869a57aab56bb1 (diff) |
refactor: create `args` folder (#14982)
Diffstat (limited to 'cli/lsp/testing/execution.rs')
-rw-r--r-- | cli/lsp/testing/execution.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/lsp/testing/execution.rs b/cli/lsp/testing/execution.rs index 03fdba63c..6b4e947a0 100644 --- a/cli/lsp/testing/execution.rs +++ b/cli/lsp/testing/execution.rs @@ -4,10 +4,11 @@ use super::definitions::TestDefinition; use super::definitions::TestDefinitions; use super::lsp_custom; +use crate::args::flags_from_vec; +use crate::args::DenoSubcommand; use crate::checksum; use crate::create_main_worker; use crate::emit; -use crate::flags; use crate::located_script_name; use crate::lsp::client::Client; use crate::lsp::client::TestingNotification; @@ -306,8 +307,7 @@ impl TestRun { ) -> Result<(), AnyError> { let args = self.get_args(); lsp_log!("Executing test run with arguments: {}", args.join(" ")); - let flags = - flags::flags_from_vec(args.into_iter().map(String::from).collect())?; + let flags = flags_from_vec(args.into_iter().map(String::from).collect())?; let ps = proc_state::ProcState::build(Arc::new(flags)).await?; let permissions = Permissions::from_options(&ps.flags.permissions_options()); @@ -327,7 +327,7 @@ impl TestRun { let sender = TestEventSender::new(sender); let (concurrent_jobs, fail_fast) = - if let flags::DenoSubcommand::Test(test_flags) = &ps.flags.subcommand { + if let DenoSubcommand::Test(test_flags) = &ps.flags.subcommand { ( test_flags.concurrent_jobs.into(), test_flags.fail_fast.map(|count| count.into()), |