@@ -17,10 +17,6 @@ class BootstrappedStdLibTASYyTest:
17
17
18
18
import BootstrappedStdLibTASYyTest ._
19
19
20
- /** Test that we can load trees from TASTy */
21
- @ Test def testTastyInspector : Unit =
22
- loadWithTastyInspector(loadBlacklisted)
23
-
24
20
/** Test that we can load and compile trees from TASTy in a Jar */
25
21
@ Test def testFromTastyInJar : Unit =
26
22
compileFromTastyInJar(loadBlacklisted.union(compileBlacklisted))
@@ -52,23 +48,6 @@ class BootstrappedStdLibTASYyTest:
52
48
compileBlacklisted.diff(scalaLibTastyPathsSet).mkString(
53
49
" `loadBlacklisted` contains names that are not in `scalaLibTastyPaths`: \n " , " \n " , " \n\n " ))
54
50
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
-
72
51
@ Ignore
73
52
@ Test def testCompileBlacklistIsMinimal =
74
53
var shouldBeWhitelisted = List .empty[String ]
@@ -101,17 +80,6 @@ object BootstrappedStdLibTASYyTest:
101
80
.map(_.normalize.path.stripPrefix(scalaLibClassesPath.toString + " /" ))
102
81
.toList
103
82
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
-
115
83
def compileFromTastyInJar (blacklisted : Set [String ]): Unit = {
116
84
val driver = new dotty.tools.dotc.Driver
117
85
val yFromTastyBlacklist =
0 commit comments