diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2022-03-30 09:59:27 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-30 09:59:27 +1100 |
commit | 061090de7e95e8e7a97f3277bd1a72899ebd1570 (patch) | |
tree | 85fbf3ed3dc4cf51a15c2baaf8257a47149c43ef /cli/tools/test.rs | |
parent | 4a0b2c28a15d76c0c40bf07c3753dfbcce4dace1 (diff) |
feat(lsp): add experimental testing API (#13798)
Ref: denoland/vscode_deno#629
Diffstat (limited to 'cli/tools/test.rs')
-rw-r--r-- | cli/tools/test.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tools/test.rs b/cli/tools/test.rs index e29d9a220..242abab1b 100644 --- a/cli/tools/test.rs +++ b/cli/tools/test.rs @@ -58,7 +58,7 @@ use tokio::sync::mpsc::UnboundedSender; /// The test mode is used to determine how a specifier is to be tested. #[derive(Debug, Clone, PartialEq)] -enum TestMode { +pub enum TestMode { /// Test as documentation, type-checking fenced code blocks. Documentation, /// Test as an executable module, loading the module into the isolate and running each test it @@ -163,7 +163,7 @@ struct TestSpecifierOptions { } impl TestSummary { - fn new() -> TestSummary { + pub fn new() -> TestSummary { TestSummary { total: 0, passed: 0, @@ -188,7 +188,7 @@ impl TestSummary { } } -trait TestReporter { +pub trait TestReporter { fn report_plan(&mut self, plan: &TestPlan); fn report_wait(&mut self, description: &TestDescription); fn report_output(&mut self, output: &TestOutput); @@ -718,7 +718,7 @@ async fn fetch_inline_files( } /// Type check a collection of module and document specifiers. -async fn check_specifiers( +pub async fn check_specifiers( ps: &ProcState, permissions: Permissions, specifiers: Vec<(ModuleSpecifier, TestMode)>, |