Fix unit test

This commit is contained in:
Andreas Dangel
2023-01-30 09:40:32 +01:00
parent d2db3954e1
commit bfba220219

View File

@ -23,19 +23,19 @@
+- FieldDeclaration[]
| +- ModifierList[]
| +- PrimitiveType[@TypeMirror = "int"]
| +- VariableDeclarator[@TypeMirror = "void"]
| +- VariableDeclarator[]
| +- VariableDeclaratorId[@Name = "MATCH_ANY", @TypeMirror = "int"]
| +- NumericLiteral[@TypeMirror = "int"]
+- FieldDeclaration[]
| +- ModifierList[]
| +- PrimitiveType[@TypeMirror = "int"]
| +- VariableDeclarator[@TypeMirror = "void"]
| +- VariableDeclarator[]
| +- VariableDeclaratorId[@Name = "MATCH_ALL", @TypeMirror = "int"]
| +- NumericLiteral[@TypeMirror = "int"]
+- FieldDeclaration[]
| +- ModifierList[]
| +- PrimitiveType[@TypeMirror = "int"]
| +- VariableDeclarator[@TypeMirror = "void"]
| +- VariableDeclarator[]
| +- VariableDeclaratorId[@Name = "MATCH_NONE", @TypeMirror = "int"]
| +- NumericLiteral[@TypeMirror = "int"]
+- ConstructorDeclaration[]
@ -93,7 +93,7 @@
| +- LocalVariableDeclaration[]
| | +- ModifierList[]
| | +- ClassOrInterfaceType[@TypeMirror = "T"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "next", @TypeMirror = "T"]
| | +- MethodCall[@Failed = false, @Function = "java.util.Iterator<T>.next() -> T", @MethodName = "next", @TypeMirror = "T", @Unchecked = false, @VarargsCall = false]
| | +- VariableAccess[@Name = "iter", @TypeMirror = "java.util.Iterator<T>"]
@ -132,7 +132,7 @@
| | +- ClassOrInterfaceType[@TypeMirror = "java.util.List<T>"]
| | | +- TypeArguments[]
| | | +- ClassOrInterfaceType[@TypeMirror = "T"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "tmp", @TypeMirror = "java.util.List<T>"]
| | +- MethodCall[@Failed = false, @Function = "IteratorUtilCopy.<T> toList(java.util.Iterator<? extends T>) -> java.util.List<T>", @MethodName = "toList", @TypeMirror = "java.util.List<T>", @Unchecked = false, @VarargsCall = false]
| | +- ArgumentList[]
@ -193,7 +193,7 @@
| | | +- TypeArguments[]
| | | +- WildcardType[@TypeMirror = "? extends R"]
| | | +- ClassOrInterfaceType[@TypeMirror = "R"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "current", @TypeMirror = "java.util.Iterator<? extends R>"]
| | +- NullLiteral[@TypeMirror = "null"]
| +- MethodDeclaration[@Name = "computeNext"]
@ -230,7 +230,7 @@
| | | | +- TypeArguments[]
| | | | +- WildcardType[@TypeMirror = "? extends R"]
| | | | +- ClassOrInterfaceType[@TypeMirror = "R"]
| | | +- VariableDeclarator[@TypeMirror = "void"]
| | | +- VariableDeclarator[]
| | | +- VariableDeclaratorId[@Name = "next", @TypeMirror = "java.util.Iterator<? extends R>"]
| | | +- MethodCall[@Failed = false, @Function = "java.util.function.Function<capture#... of ? super T, capture#... of ? extends @Nullable java.util.Iterator<? extends R>>.apply(capture#... of ? super T) -> capture#... of ? extends @Nullable java.util.Iterator<? extends R>", @MethodName = "apply", @TypeMirror = "capture#... of ? extends @Nullable java.util.Iterator<? extends R>", @Unchecked = false, @VarargsCall = false]
| | | +- VariableAccess[@Name = "f", @TypeMirror = "java.util.function.Function<capture#... of ? super T, capture#... of ? extends @Nullable java.util.Iterator<? extends R>>"]
@ -304,7 +304,7 @@
| | | +- TypeArguments[]
| | | +- WildcardType[@TypeMirror = "? extends R"]
| | | +- ClassOrInterfaceType[@TypeMirror = "R"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "current", @TypeMirror = "java.util.Iterator<? extends R>"]
| | +- NullLiteral[@TypeMirror = "null"]
| +- MethodDeclaration[@Name = "computeNext"]
@ -342,7 +342,7 @@
| | +- LocalVariableDeclaration[]
| | | +- ModifierList[]
| | | +- ClassOrInterfaceType[@TypeMirror = "R"]
| | | +- VariableDeclarator[@TypeMirror = "void"]
| | | +- VariableDeclarator[]
| | | +- VariableDeclaratorId[@Name = "next", @TypeMirror = "R"]
| | | +- MethodCall[@Failed = false, @Function = "java.util.Iterator<capture#... of ? extends R>.next() -> capture#... of ? extends R", @MethodName = "next", @TypeMirror = "capture#... of ? extends R", @Unchecked = false, @VarargsCall = false]
| | | +- VariableAccess[@Name = "iter", @TypeMirror = "java.util.Iterator<capture#... of ? extends R>"]
@ -435,7 +435,7 @@
| | +- LocalVariableDeclaration[]
| | | +- ModifierList[]
| | | +- ClassOrInterfaceType[@TypeMirror = "T"]
| | | +- VariableDeclarator[@TypeMirror = "void"]
| | | +- VariableDeclarator[]
| | | +- VariableDeclaratorId[@Name = "next", @TypeMirror = "T"]
| | | +- MethodCall[@Failed = false, @Function = "java.util.Iterator<capture#... of ? extends T>.next() -> capture#... of ? extends T", @MethodName = "next", @TypeMirror = "capture#... of ? extends T", @Unchecked = false, @VarargsCall = false]
| | | +- VariableAccess[@Name = "it", @TypeMirror = "java.util.Iterator<capture#... of ? extends T>"]
@ -448,7 +448,7 @@
| | +- LocalVariableDeclaration[]
| | | +- ModifierList[]
| | | +- ClassOrInterfaceType[@TypeMirror = "R"]
| | | +- VariableDeclarator[@TypeMirror = "void"]
| | | +- VariableDeclarator[]
| | | +- VariableDeclaratorId[@Name = "map", @TypeMirror = "R"]
| | | +- MethodCall[@Failed = false, @Function = "java.util.function.Function<capture#... of ? super T, capture#... of ? extends R>.apply(capture#... of ? super T) -> capture#... of ? extends R", @MethodName = "apply", @TypeMirror = "capture#... of ? extends R", @Unchecked = false, @VarargsCall = false]
| | | +- VariableAccess[@Name = "mapper", @TypeMirror = "java.util.function.Function<capture#... of ? super T, capture#... of ? extends R>"]
@ -514,7 +514,7 @@
| | +- LocalVariableDeclaration[]
| | | +- ModifierList[]
| | | +- ClassOrInterfaceType[@TypeMirror = "T"]
| | | +- VariableDeclarator[@TypeMirror = "void"]
| | | +- VariableDeclarator[]
| | | +- VariableDeclaratorId[@Name = "next", @TypeMirror = "T"]
| | | +- MethodCall[@Failed = false, @Function = "java.util.Iterator<capture#... of ? extends T>.next() -> capture#... of ? extends T", @MethodName = "next", @TypeMirror = "capture#... of ? extends T", @Unchecked = false, @VarargsCall = false]
| | | +- VariableAccess[@Name = "it", @TypeMirror = "java.util.Iterator<capture#... of ? extends T>"]
@ -809,7 +809,7 @@
| | +- ClassOrInterfaceType[@TypeMirror = "java.util.Set<T>"]
| | | +- TypeArguments[]
| | | +- ClassOrInterfaceType[@TypeMirror = "T"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "seen", @TypeMirror = "java.util.Set<T>"]
| | +- ConstructorCall[@Failed = false, @Function = "java.util.HashSet<T>.new() -> java.util.HashSet<T>", @MethodName = "new", @TypeMirror = "java.util.HashSet<T>", @Unchecked = false, @VarargsCall = false]
| | +- ClassOrInterfaceType[@TypeMirror = "java.util.HashSet"]
@ -842,7 +842,7 @@
| | +- ClassOrInterfaceType[@TypeMirror = "java.util.List<T>"]
| | | +- TypeArguments[]
| | | +- ClassOrInterfaceType[@TypeMirror = "T"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "list", @TypeMirror = "java.util.List<T>"]
| | +- ConstructorCall[@Failed = false, @Function = "java.util.ArrayList<T>.new() -> java.util.ArrayList<T>", @MethodName = "new", @TypeMirror = "java.util.ArrayList<T>", @Unchecked = false, @VarargsCall = false]
| | +- ClassOrInterfaceType[@TypeMirror = "java.util.ArrayList"]
@ -883,7 +883,7 @@
| | +- ClassOrInterfaceType[@TypeMirror = "java.util.List<T>"]
| | | +- TypeArguments[]
| | | +- ClassOrInterfaceType[@TypeMirror = "T"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "list", @TypeMirror = "java.util.List<T>"]
| | +- ConstructorCall[@Failed = false, @Function = "java.util.ArrayList<T>.new() -> java.util.ArrayList<T>", @MethodName = "new", @TypeMirror = "java.util.ArrayList<T>", @Unchecked = false, @VarargsCall = false]
| | +- ClassOrInterfaceType[@TypeMirror = "java.util.ArrayList"]
@ -897,7 +897,7 @@
| | +- LocalVariableDeclaration[]
| | | +- ModifierList[]
| | | +- ClassOrInterfaceType[@TypeMirror = "T"]
| | | +- VariableDeclarator[@TypeMirror = "void"]
| | | +- VariableDeclarator[]
| | | +- VariableDeclaratorId[@Name = "next", @TypeMirror = "T"]
| | | +- MethodCall[@Failed = false, @Function = "java.util.Iterator<capture#... of ? extends T>.next() -> capture#... of ? extends T", @MethodName = "next", @TypeMirror = "capture#... of ? extends T", @Unchecked = false, @VarargsCall = false]
| | | +- VariableAccess[@Name = "it", @TypeMirror = "java.util.Iterator<capture#... of ? extends T>"]
@ -947,7 +947,7 @@
| +- LocalVariableDeclaration[]
| | +- ModifierList[]
| | +- PrimitiveType[@TypeMirror = "int"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "count", @TypeMirror = "int"]
| | +- NumericLiteral[@TypeMirror = "int"]
| +- WhileStatement[]
@ -981,7 +981,7 @@
| +- LocalVariableDeclaration[]
| | +- ModifierList[]
| | +- ClassOrInterfaceType[@TypeMirror = "T"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "next", @TypeMirror = "T"]
| | +- NullLiteral[@TypeMirror = "null"]
| +- WhileStatement[]
@ -1102,7 +1102,7 @@
| +- FieldDeclaration[]
| | +- ModifierList[]
| | +- PrimitiveType[@TypeMirror = "int"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "yielded", @TypeMirror = "int"]
| | +- NumericLiteral[@TypeMirror = "int"]
| +- MethodDeclaration[@Name = "computeNext"]
@ -1178,7 +1178,7 @@
| +- FieldDeclaration[]
| | +- ModifierList[]
| | +- PrimitiveType[@TypeMirror = "int"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "yielded", @TypeMirror = "int"]
| | +- NumericLiteral[@TypeMirror = "int"]
| +- MethodDeclaration[@Name = "computeNext"]
@ -1252,7 +1252,7 @@
| +- FieldDeclaration[]
| | +- ModifierList[]
| | +- ClassOrInterfaceType[@TypeMirror = "T"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "next", @TypeMirror = "T"]
| | +- VariableAccess[@Name = "seed", @TypeMirror = "T"]
| +- MethodDeclaration[@Name = "computeNext"]
@ -1391,7 +1391,7 @@
| +- LocalVariableDeclaration[]
| | +- ModifierList[]
| | +- PrimitiveType[@TypeMirror = "boolean"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "kindAny", @TypeMirror = "boolean"]
| | +- InfixExpression[@TypeMirror = "boolean"]
| | +- VariableAccess[@Name = "matchKind", @TypeMirror = "int"]
@ -1399,7 +1399,7 @@
| +- LocalVariableDeclaration[]
| | +- ModifierList[]
| | +- PrimitiveType[@TypeMirror = "boolean"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "kindAll", @TypeMirror = "boolean"]
| | +- InfixExpression[@TypeMirror = "boolean"]
| | +- VariableAccess[@Name = "matchKind", @TypeMirror = "int"]
@ -1412,7 +1412,7 @@
| | +- LocalVariableDeclaration[]
| | | +- ModifierList[]
| | | +- ClassOrInterfaceType[@TypeMirror = "T"]
| | | +- VariableDeclarator[@TypeMirror = "void"]
| | | +- VariableDeclarator[]
| | | +- VariableDeclaratorId[@Name = "value", @TypeMirror = "T"]
| | | +- MethodCall[@Failed = false, @Function = "java.util.Iterator<capture#... of ? extends T>.next() -> capture#... of ? extends T", @MethodName = "next", @TypeMirror = "capture#... of ? extends T", @Unchecked = false, @VarargsCall = false]
| | | +- VariableAccess[@Name = "iterator", @TypeMirror = "java.util.Iterator<capture#... of ? extends T>"]
@ -1420,7 +1420,7 @@
| | +- LocalVariableDeclaration[]
| | | +- ModifierList[]
| | | +- PrimitiveType[@TypeMirror = "boolean"]
| | | +- VariableDeclarator[@TypeMirror = "void"]
| | | +- VariableDeclarator[]
| | | +- VariableDeclaratorId[@Name = "match", @TypeMirror = "boolean"]
| | | +- MethodCall[@Failed = false, @Function = "java.util.function.Predicate<capture#... of ? super T>.test(capture#... of ? super T) -> boolean", @MethodName = "test", @TypeMirror = "boolean", @Unchecked = false, @VarargsCall = false]
| | | +- VariableAccess[@Name = "pred", @TypeMirror = "java.util.function.Predicate<capture#... of ? super T>"]
@ -1462,7 +1462,7 @@
| | +- FieldDeclaration[]
| | | +- ModifierList[]
| | | +- PrimitiveType[@TypeMirror = "boolean"]
| | | +- VariableDeclarator[@TypeMirror = "void"]
| | | +- VariableDeclarator[]
| | | +- VariableDeclaratorId[@Name = "done", @TypeMirror = "boolean"]
| | +- MethodDeclaration[@Name = "hasNext"]
| | | +- ModifierList[]
@ -1548,7 +1548,7 @@
| | +- ClassOrInterfaceType[@TypeMirror = "java.util.ListIterator<T>"]
| | | +- TypeArguments[]
| | | +- ClassOrInterfaceType[@TypeMirror = "T"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "li", @TypeMirror = "java.util.ListIterator<T>"]
| | +- MethodCall[@Failed = false, @Function = "java.util.List<T>.listIterator(int) -> java.util.ListIterator<T>", @MethodName = "listIterator", @TypeMirror = "java.util.ListIterator<T>", @Unchecked = false, @VarargsCall = false]
| | +- VariableAccess[@Name = "lst", @TypeMirror = "java.util.List<T>"]
@ -1629,7 +1629,7 @@
| +- FieldDeclaration[]
| | +- ModifierList[]
| | +- ClassOrInterfaceType[@TypeMirror = "IteratorUtilCopy$AbstractIterator$State"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "state", @TypeMirror = "IteratorUtilCopy$AbstractIterator$State"]
| | +- FieldAccess[@Name = "NOT_READY", @TypeMirror = "IteratorUtilCopy$AbstractIterator$State"]
| | +- TypeExpression[@TypeMirror = "IteratorUtilCopy$AbstractIterator$State"]
@ -1637,7 +1637,7 @@
| +- FieldDeclaration[]
| | +- ModifierList[]
| | +- ClassOrInterfaceType[@TypeMirror = "T"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "next", @TypeMirror = "T"]
| | +- NullLiteral[@TypeMirror = "null"]
| +- MethodDeclaration[@Name = "hasNext"]
@ -1779,13 +1779,13 @@
+- FieldDeclaration[]
| +- ModifierList[]
| +- PrimitiveType[@TypeMirror = "int"]
| +- VariableDeclarator[@TypeMirror = "void"]
| +- VariableDeclarator[]
| +- VariableDeclaratorId[@Name = "numYielded", @TypeMirror = "int"]
| +- NumericLiteral[@TypeMirror = "int"]
+- FieldDeclaration[]
| +- ModifierList[]
| +- ClassOrInterfaceType[@TypeMirror = "T"]
| +- VariableDeclarator[@TypeMirror = "void"]
| +- VariableDeclarator[]
| +- VariableDeclaratorId[@Name = "currentValue", @TypeMirror = "T"]
+- MethodDeclaration[@Name = "next"]
| +- ModifierList[]
@ -1797,7 +1797,7 @@
| +- LocalVariableDeclaration[]
| | +- ModifierList[]
| | +- ClassOrInterfaceType[@TypeMirror = "T"]
| | +- VariableDeclarator[@TypeMirror = "void"]
| | +- VariableDeclarator[]
| | +- VariableDeclaratorId[@Name = "next", @TypeMirror = "T"]
| | +- MethodCall[@Failed = false, @Function = "IteratorUtilCopy$AbstractIterator<T>.next() -> T", @MethodName = "next", @TypeMirror = "T", @Unchecked = false, @VarargsCall = false]
| | +- SuperExpression[@TypeMirror = "IteratorUtilCopy$AbstractIterator<T>"]