@@ -2,44 +2,42 @@ package dotty
22package tools
33package dotc
44
5- import scala .concurrent .duration ._
6- import dotty .tools .vulpix ._
7- import org .junit .{ Test , AfterClass }
5+ import dotty .tools .vulpix .*
86import reporting .TestReporter
9- import java .io .{File => JFile }
107
8+ import scala .concurrent .duration .*
119import scala .language .unsafeNulls
1210
11+ import java .io .{File => JFile }
12+ import org .junit .{AfterClass , Test }
13+
1314class BestEffortOptionsTests {
14- import ParallelTesting ._
15- import vulpix .TestConfiguration ._
16- import BestEffortOptionsTests ._
17- import CompilationTest .aggregateTests
15+ import ParallelTesting .*
16+ import vulpix .TestConfiguration .*
17+ import BestEffortOptionsTests .*
1818
1919 // Since TASTy and beTASTy files are read in a lazy manner (only when referenced by the source .scala file)
2020 // we test by using the "-from-tasty" option. This guarantees that the tasty files will be read
2121 // (and that the Best Effort TASTy reader will be tested), but we unfortunately skip the useful
2222 // interactions a tree derived from beTASTy could have with other frontend phases.
23- @ Test def negTestFromBestEffortTasty : Unit = {
23+ @ Test def negTestFromBestEffortTasty : Unit =
2424 // Can be reproduced with
2525 // > sbt
26- // > scalac -- Ybest-effort -Xsemanticdb <source>
27- // > scalac -- from-tasty -Ywith-best-effort-tasty META_INF/best-effort/<betasty>
26+ // > scalac -Ybest-effort -Xsemanticdb <source>
27+ // > scalac -from-tasty -Ywith-best-effort-tasty META_INF/best-effort/<betasty>
2828
29- implicit val testGroup : TestGroup = TestGroup (" negTestFromBestEffortTasty" )
29+ given TestGroup = TestGroup (" negTestFromBestEffortTasty" )
3030 compileBestEffortTastyInDir(s " tests ${JFile .separator}neg " , bestEffortBaselineOptions,
3131 picklingFilter = FileFilter .exclude(TestSources .negBestEffortPicklingExcludelisted),
3232 unpicklingFilter = FileFilter .exclude(TestSources .negBestEffortUnpicklingExcludelisted)
3333 ).checkNoCrash()
34- }
3534
3635 // Tests an actual use case of this compilation mode, where symbol definitions of the downstream
3736 // projects depend on the best effort tasty files generated with the Best Effort dir option
38- @ Test def bestEffortIntergrationTest : Unit = {
39- implicit val testGroup : TestGroup = TestGroup (" bestEffortIntegrationTests" )
37+ @ Test def bestEffortIntegrationTest : Unit =
38+ given TestGroup = TestGroup (" bestEffortIntegrationTests" )
4039 compileBestEffortIntegration(s " tests ${JFile .separator}best-effort " , bestEffortBaselineOptions)
4140 .noCrashWithCompilingDependencies()
42- }
4341}
4442
4543object BestEffortOptionsTests extends ParallelTesting {
0 commit comments