Skip to content

Commit

Permalink
Remove blacklisted inner method and objects
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki committed Jun 18, 2017
1 parent 8251d1b commit b1487a2
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions tests/idempotency/IdempotencyCheck.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,14 @@ import java.util.stream.{ Stream => JStream }
import scala.collection.JavaConverters._

object IdempotencyCheck {
val blacklistedSet = Set(
val blacklisted = Set(
// No fix needed. Bridges on collections in different order. Second one in scala2 order.
"pos/Map/scala/collection/immutable/Map",
"pos/Map/scala/collection/immutable/AbstractMap",
"pos/t1203a/NodeSeq",
"pos/i2345/Whatever"
)

def blacklisted(s: String) = {
blacklistedSet(s) ||
// FIXME: non-deterministic method/class names
s.contains("$$anon$") ||
s.contains("$$anonfun$") ||
s.contains("$accu$") ||
s.contains("$accum$") ||
s.startsWith("/dotty/dotty/tools/dotc/sbt/ExtractAPICollector$classFirstSort$") ||
s.startsWith("/dotty/dotty/tools/dotc/transform/PatternMatcher$Translator$TreeMakers$IntEqualityTestTreeMaker$") ||
s.startsWith("dotty/dotty/tools/dotc/transform/Constructors$intoConstr$") ||
s.startsWith("/dotty/dotty/tools/dotc/typer/RefChecks$MixinOverrideError$") ||
s.startsWith("/dotty/dotty/tools/dotc/typer/ImplicitRunInfo$liftToClasses$") ||
s.startsWith("/dotty/dotty/tools/dotc/typer/Inliner$addAccessors$") ||
s.startsWith("/dotty/dotty/tools/dotc/typer/ErrorReporting$reported$")
}

def checkIdempotency(dirPrefix: String): Unit = {
var failed = 0
var total = 0
Expand Down

0 comments on commit b1487a2

Please sign in to comment.