feat: Add support for for comprehensions. (#935)

This commit is contained in:
kerr 2024-01-14 00:39:44 +08:00 committed by GitHub
parent 6883d15576
commit 72f0a426b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 162 additions and 7 deletions

View file

@ -67,6 +67,10 @@ object StreamOperatorsIndexGenerator extends AutoPlugin {
"actorPublisher",
"addAttributes",
"mapMaterializedValue",
// for comprehensions
"withFilter",
"flatMap",
"foreach",
// *Graph:
"concatGraph",
"prependGraph",
@ -108,7 +112,7 @@ object StreamOperatorsIndexGenerator extends AutoPlugin {
"foldAsync",
"newOnCompleteStage"))
val ignore =
val ignore = {
Set("equals", "hashCode", "notify", "notifyAll", "wait", "toString", "getClass") ++
Set("productArity", "canEqual", "productPrefix", "copy", "productIterator", "productElement") ++
Set(
@ -123,6 +127,7 @@ object StreamOperatorsIndexGenerator extends AutoPlugin {
"transformMaterializing") ++
Set("asScala", "asJava", "deprecatedAndThen", "deprecatedAndThenMat") ++
Set("++", "onPush", "onPull", "actorRefWithAck")
}
def isPending(element: String, opName: String) =
pendingTestCases.get(element).exists(_.contains(opName))