Skip to content

Commit 69dda1c

Browse files
committed
Cleanup blacklists
1 parent ac08082 commit 69dda1c

File tree

1 file changed

+10
-71
lines changed

1 file changed

+10
-71
lines changed

dotty-scala-library-from-tasty-tests/test/LibraryTest.scala

Lines changed: 10 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,12 @@ object TastyInspectorTest:
117117
assert(reporter.errorCount == 0, "Errors while re-compiling")
118118
}
119119

120+
/** List of classes that cannot be loaded from TASTy */
120121
def loadBlacklist = List[String](
121122
// No issues :)
122123
)
123124

125+
/** List of classes that cannot be recompilied from TASTy */
124126
def compileBlacklist = List[String](
125127
// java.lang.AssertionError: assertion failed: private value DefaultSentinel in object Map
126128
"scala.Array",
@@ -174,7 +176,6 @@ object TastyInspectorTest:
174176
"scala.collection.immutable.MapBuilderImpl",
175177
"scala.collection.immutable.SetBuilderImpl",
176178
"scala.collection.immutable.TreeSeqMap",
177-
"scala.collection.immutable.Vector",
178179
"scala.collection.immutable.VectorBuilder",
179180
"scala.collection.immutable.VectorMapBuilder",
180181
"scala.collection.mutable.AnyRefMap",
@@ -205,90 +206,28 @@ object TastyInspectorTest:
205206
// assertion failed: private method checkFallback in object PartialFunction
206207
"scala.PartialFunction",
207208

208-
// fails on CI only
209209
// at dotty.DottyPredef$.assertFail(DottyPredef.scala:17)
210210
// at dotty.tools.dotc.transform.ExpandPrivate.ensurePrivateAccessible(ExpandPrivate.scala:84)
211211
// at dotty.tools.dotc.transform.ExpandPrivate.transformSelect(ExpandPrivate.scala:97)
212212
// at dotty.tools.dotc.transform.ExpandPrivate.transformSelect(ExpandPrivate.scala:96)
213-
"scala.util.DynamicVariable",
214-
"scala.util.Using",
215-
216-
// uncategorized issue
217-
"scala.collection.ArrayOps",
218-
"scala.collection.BitSetOps",
219-
"scala.collection.generic.DefaultSerializationProxy",
220-
"scala.collection.immutable.List",
221-
"scala.collection.immutable.Node",
222-
"scala.collection.immutable.NumericRange",
223-
"scala.collection.immutable.Range",
224-
"scala.collection.immutable.StrictOptimizedSeqOps",
225-
"scala.collection.immutable.Vector0",
226-
"scala.collection.immutable.VectorSliceBuilder",
227-
"scala.collection.immutable.WrappedString",
228-
"scala.collection.Iterator",
229213
"scala.collection.LazyZip2",
230214
"scala.collection.LazyZip3",
231215
"scala.collection.LazyZip4",
232-
"scala.collection.MapOps",
233-
"scala.collection.mutable.ArrayBuffer",
234-
"scala.collection.mutable.ArrayBufferView",
235-
"scala.collection.mutable.ArrayDeque",
236-
"scala.collection.mutable.ArrayDequeOps",
237-
"scala.collection.mutable.HashMap",
238216
"scala.collection.mutable.HashTable",
239-
"scala.collection.mutable.ListBuffer",
240217
"scala.collection.mutable.UnrolledBuffer",
241-
"scala.collection.SeqView",
242-
"scala.collection.StringView",
243-
"scala.concurrent.duration.Duration",
244-
"scala.concurrent.Future",
218+
"scala.util.DynamicVariable", // fails on CI only
219+
"scala.util.Using", // fails on CI only
220+
221+
// java.lang.StringIndexOutOfBoundsException: String index out of range: 153
222+
"scala.collection.Iterator",
245223
"scala.Enumeration",
246-
"scala.io.Source",
247-
"scala.jdk.Accumulator",
248-
"scala.jdk.javaapi.DurationConverters",
249-
"scala.Product",
250-
"scala.Product1",
251-
"scala.Product10",
252-
"scala.Product11",
253-
"scala.Product12",
254-
"scala.Product13",
255-
"scala.Product14",
256-
"scala.Product15",
257-
"scala.Product16",
258-
"scala.Product17",
259-
"scala.Product18",
260-
"scala.Product19",
261-
"scala.Product2",
262-
"scala.Product20",
263-
"scala.Product21",
264-
"scala.Product22",
265-
"scala.Product3",
266-
"scala.Product4",
267-
"scala.Product5",
268-
"scala.Product6",
269-
"scala.Product7",
270-
"scala.Product8",
271-
"scala.Product9",
272-
"scala.reflect.ClassTag",
273-
"scala.runtime.ArrayCharSequence",
274-
"scala.runtime.LazyBoolean",
275-
"scala.runtime.LazyByte",
276-
"scala.runtime.LazyChar",
277-
"scala.runtime.LazyDouble",
278-
"scala.runtime.LazyFloat",
279-
"scala.runtime.LazyInt",
280-
"scala.runtime.LazyLong",
281-
"scala.runtime.LazyRef",
282-
"scala.runtime.LazyShort",
283-
"scala.runtime.LazyUnit",
284-
"scala.runtime.Tuple2Zipped",
285-
"scala.runtime.Tuple3Zipped",
286-
"scala.StringContext",
287224
"scala.sys.process.ProcessImpl",
288-
"scala.util.PropertiesTrait",
289225
)
290226

227+
/** Set of classes that cannot be loaded from TASTy */
291228
def loadBlacklisted = loadBlacklist.toSet
229+
230+
/** Set of classes that cannot be recompilied from TASTy */
292231
def compileBlacklisted = compileBlacklist.toSet
293232

294233
end TastyInspectorTest

0 commit comments

Comments
 (0)