Use box tests to check if the light analysis mode (without analyzing bodies when possible) produces the same result as the complete analysis. See also the next commit in which light analysis mode is applied. Note that no tests were changed.
This commit is contained in:
committed by
Yan Zhulanow
parent
8bdb54929b
commit
328286ab14
+3
@@ -0,0 +1,3 @@
|
||||
public final class CatchKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
public final class ComplexChainKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method cleanup(): void
|
||||
public final static @org.jetbrains.annotations.NotNull method concat(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method first(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: java.lang.String): java.lang.String
|
||||
public final static method throws(): void
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
public final class DeadTryCatchKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method catchAll(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function0): java.lang.String
|
||||
public final static method tryTwice(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): void
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class DifferentTypesKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method foo(p0: byte, @org.jetbrains.annotations.NotNull p1: java.lang.String, p2: int, p3: double, p4: long): java.lang.String
|
||||
}
|
||||
compiler/testData/codegen/light-analysis/controlStructures/tryCatchInExpressions/expectException.txt
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
public final class ExpectExceptionKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.Nullable method fails(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): java.lang.Throwable
|
||||
public final static method throwIt(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
public final class FinallyKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
public final class InlineTryCatchKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method testIt(): java.lang.String
|
||||
public final static method tryOrElse(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function0): java.lang.Object
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
public final class InlineTryExprKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method testIt(): java.lang.String
|
||||
public final static method tryOrElse(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function0): java.lang.Object
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public final class InlineTryFinallyKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method testIt(): java.lang.String
|
||||
public final static method tryAndThen(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function0, @org.jetbrains.annotations.NotNull p2: kotlin.jvm.functions.Function0): java.lang.Object
|
||||
}
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
public final class A {
|
||||
public method <init>(): void
|
||||
public final @org.jetbrains.annotations.NotNull method foo(): java.lang.String
|
||||
private final method x(): void
|
||||
}
|
||||
|
||||
|
||||
public interface Callable {
|
||||
public abstract method call(p0: boolean): void
|
||||
}
|
||||
|
||||
|
||||
public final class Kt8608Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method run(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): void
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
public final class Kt9644tryKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method doCall(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): java.lang.Object
|
||||
public final static method test1(): void
|
||||
public final static @org.jetbrains.annotations.NotNull method test2(): java.lang.String
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
public final class Exception1 {
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
|
||||
|
||||
public final class Exception2 {
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
|
||||
|
||||
public final class Exception3 {
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
|
||||
|
||||
public final class MultipleCatchBlocksKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class SplitTryKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method test(@org.jetbrains.annotations.NotNull p0: kotlin.jvm.functions.Function0): int
|
||||
}
|
||||
compiler/testData/codegen/light-analysis/controlStructures/tryCatchInExpressions/splitTryCorner1.txt
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class SplitTryCorner1Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method shouldReturnFalse(): boolean
|
||||
}
|
||||
compiler/testData/codegen/light-analysis/controlStructures/tryCatchInExpressions/splitTryCorner2.txt
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
public final class SplitTryCorner2Kt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method shouldReturn11(): int
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public final class TryKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
public final class TryAfterTryKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
public final class TryAndBreakKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method foo(): int
|
||||
public final static method idiv(p0: int, p1: int): int
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
public final class TryAndContinueKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static method foo(): int
|
||||
public final static method idiv(p0: int, p1: int): int
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
public final class TryInsideCatchKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
public final class MyException {
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
|
||||
|
||||
public final class TryInsideTryKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
public final class UnmatchedInlineMarkersKt {
|
||||
public final static @org.jetbrains.annotations.NotNull method bar(@org.jetbrains.annotations.NotNull p0: java.lang.String): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
|
||||
public final static @org.jetbrains.annotations.NotNull method catchAll(@org.jetbrains.annotations.NotNull p0: java.lang.String, @org.jetbrains.annotations.NotNull p1: kotlin.jvm.functions.Function0): java.lang.String
|
||||
public final static method throwIt(@org.jetbrains.annotations.NotNull p0: java.lang.String): void
|
||||
}
|
||||
Reference in New Issue
Block a user