@@ -17,10 +17,6 @@ class BootstrappedStdLibTASYyTest:
1717
1818 import BootstrappedStdLibTASYyTest ._
1919
20- /** Test that we can load trees from TASTy */
21- @ Test def testTastyInspector : Unit =
22- loadWithTastyInspector(loadBlacklisted)
23-
2420 /** Test that we can load and compile trees from TASTy in a Jar */
2521 @ Test def testFromTastyInJar : Unit =
2622 compileFromTastyInJar(loadBlacklisted.union(compileBlacklisted))
@@ -52,23 +48,6 @@ class BootstrappedStdLibTASYyTest:
5248 compileBlacklisted.diff(scalaLibTastyPathsSet).mkString(
5349 " `loadBlacklisted` contains names that are not in `scalaLibTastyPaths`: \n " , " \n " , " \n\n " ))
5450
55- @ Ignore
56- @ Test def testLoadBacklistIsMinimal =
57- var shouldBeWhitelisted = List .empty[String ]
58- val size = loadBlacklisted.size
59- for (notBlacklisted, i) <- loadBlacklist.zipWithIndex do
60- val blacklist = loadBlacklisted - notBlacklisted
61- println(s " Trying without $notBlacklisted in the blacklist ( ${i+ 1 }/ $size) " )
62- try {
63- loadWithTastyInspector(blacklist)
64- shouldBeWhitelisted = notBlacklisted :: shouldBeWhitelisted
65- }
66- catch {
67- case ex : Throwable => // ok
68- }
69- assert(shouldBeWhitelisted.isEmpty,
70- shouldBeWhitelisted.mkString(" Some classes do not need to be blacklisted in `loadBlacklisted`\n " , " \n " , " \n\n " ))
71-
7251 @ Ignore
7352 @ Test def testCompileBlacklistIsMinimal =
7453 var shouldBeWhitelisted = List .empty[String ]
@@ -101,17 +80,6 @@ object BootstrappedStdLibTASYyTest:
10180 .map(_.normalize.path.stripPrefix(scalaLibClassesPath.toString + " /" ))
10281 .toList
10382
104- def loadWithTastyInspector (blacklisted : Set [String ]): Unit =
105- val inspector = new scala.tasty.inspector.Inspector {
106- def inspect (using Quotes )(tastys : List [Tasty [quotes.type ]]): Unit =
107- for tasty <- tastys do
108- tasty.ast.show(using quotes.reflect.Printer .TreeStructure ) // Check that we can traverse the full tree
109- ()
110- }
111- val tastyFiles = scalaLibTastyPaths.filterNot(blacklisted)
112- val isSuccess = TastyInspector .inspectTastyFiles(tastyFiles.map(x => scalaLibClassesPath.resolve(x).toString))(inspector)
113- assert(isSuccess, " Errors reported while loading from TASTy" )
114-
11583 def compileFromTastyInJar (blacklisted : Set [String ]): Unit = {
11684 val driver = new dotty.tools.dotc.Driver
11785 val yFromTastyBlacklist =
0 commit comments