diff options
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)>, |