AA: test evaluation mode with same test inputs
This commit is contained in:
committed by
Ilya Kirillov
parent
a7fcbfb717
commit
46707b0426
+9
@@ -0,0 +1,9 @@
|
||||
expression: "message" + msg
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: NOT_EVALUATED
|
||||
constantValueKind: NOT_EVALUATED
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: NOT_EVALUATED
|
||||
constantLikeValueKind: NOT_EVALUATED
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
expression: bar
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: 42
|
||||
constantValueKind: Int
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: 42
|
||||
constantLikeValueKind: Int
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
expression: bar
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: NOT_EVALUATED
|
||||
constantValueKind: NOT_EVALUATED
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: 42
|
||||
constantLikeValueKind: Int
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
expression: bar
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: NOT_EVALUATED
|
||||
constantValueKind: NOT_EVALUATED
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: NOT_EVALUATED
|
||||
constantLikeValueKind: NOT_EVALUATED
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
expression: someField
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: NOT_EVALUATED
|
||||
constantValueKind: NOT_EVALUATED
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: "something"
|
||||
constantLikeValueKind: String
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
expression: indirectPointer
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: NOT_EVALUATED
|
||||
constantValueKind: NOT_EVALUATED
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: "something"
|
||||
constantLikeValueKind: String
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
expression: oneMore
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: NOT_EVALUATED
|
||||
constantValueKind: NOT_EVALUATED
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: "something"
|
||||
constantLikeValueKind: String
|
||||
analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInit_Byte.txt
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
expression: 42
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: 42
|
||||
constantValueKind: Byte
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: 42
|
||||
constantLikeValueKind: Byte
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
expression: 42 / d
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: 42
|
||||
constantValueKind: Int
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: 42
|
||||
constantLikeValueKind: Int
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
expression: 42 / d
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: 42
|
||||
constantValueKind: Int
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: 42
|
||||
constantLikeValueKind: Int
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
expression: 42 / d
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: NOT_EVALUATED
|
||||
constantValueKind: NOT_EVALUATED
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: 42
|
||||
constantLikeValueKind: Int
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
expression: 42 / 0
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: error("Division by zero")
|
||||
constantValueKind: Error
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: error("Division by zero")
|
||||
constantLikeValueKind: Error
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
expression: 42 / 0
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: error("/ by zero")
|
||||
constantValueKind: Error
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: error("/ by zero")
|
||||
constantLikeValueKind: Error
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
expression: 3.14
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: 3.14
|
||||
constantValueKind: Double
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: 3.14
|
||||
constantLikeValueKind: Double
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
expression: 3.14f
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: 3.14f
|
||||
constantValueKind: Float
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: 3.14f
|
||||
constantLikeValueKind: Float
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
expression: 42
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: 42
|
||||
constantValueKind: Int
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: 42
|
||||
constantLikeValueKind: Int
|
||||
analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInit_Long.txt
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
expression: 42
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: 42
|
||||
constantValueKind: Long
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: 42
|
||||
constantLikeValueKind: Long
|
||||
analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/propertyInit_UInt.txt
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
expression: 42u
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: 42u
|
||||
constantValueKind: UInt
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: 42u
|
||||
constantLikeValueKind: UInt
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
expression: "42"
|
||||
|
||||
CONSTANT_EXPRESSION_EVALUATION
|
||||
constant: "42"
|
||||
constantValueKind: String
|
||||
|
||||
CONSTANT_LIKE_EXPRESSION_EVALUATION
|
||||
constantLike: "42"
|
||||
constantLikeValueKind: String
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: bar
|
||||
constant: 42
|
||||
constantValueKind: Int
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: bar
|
||||
constant: NOT_EVALUATED
|
||||
constantValueKind: NOT_EVALUATED
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
class Test {
|
||||
val p = <expr>42 / d</expr> // uninitialized d
|
||||
const val d = 1
|
||||
}
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: 42 / d
|
||||
constant: 42
|
||||
constantValueKind: Int
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: 42 / d
|
||||
constant: error("Division by zero")
|
||||
constantValueKind: Error
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
class Test {
|
||||
val p = <expr>42 / d</expr> // uninitialized d
|
||||
val d = 0 // should not raise div-by-zero error
|
||||
}
|
||||
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: 42 / d
|
||||
constant: NOT_EVALUATED
|
||||
constantValueKind: NOT_EVALUATED
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: "message" + msg
|
||||
constant: NOT_EVALUATED
|
||||
constantValueKind: NOT_EVALUATED
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
class Test {
|
||||
const val bar : Int = 42
|
||||
}
|
||||
|
||||
fun box() {
|
||||
val t = Test()
|
||||
t.<expr>bar</expr>
|
||||
}
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: bar
|
||||
constant: 42
|
||||
constantValueKind: Int
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
class Test {
|
||||
val bar : Int = 42
|
||||
}
|
||||
|
||||
fun box() {
|
||||
val t = Test()
|
||||
t.<expr>bar</expr>
|
||||
}
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: bar
|
||||
constant: 42
|
||||
constantValueKind: Int
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: bar
|
||||
constant: NOT_EVALUATED
|
||||
constantValueKind: NOT_EVALUATED
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: someField
|
||||
constant: "something"
|
||||
constantValueKind: String
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: indirectPointer
|
||||
constant: "something"
|
||||
constantValueKind: String
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: oneMore
|
||||
constant: "something"
|
||||
constantValueKind: String
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: 42
|
||||
constant: 42
|
||||
constantValueKind: Byte
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: 42 / d
|
||||
constant: 42
|
||||
constantValueKind: Int
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: 42 / d
|
||||
constant: 42
|
||||
constantValueKind: Int
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: 42 / 0
|
||||
constant: error("Division by zero")
|
||||
constantValueKind: Error
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: 42 / 0
|
||||
constant: error("/ by zero")
|
||||
constantValueKind: Error
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: 3.14
|
||||
constant: 3.14
|
||||
constantValueKind: Double
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: 3.14f
|
||||
constant: 3.14f
|
||||
constantValueKind: Float
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: 42
|
||||
constant: 42
|
||||
constantValueKind: Int
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: 42
|
||||
constant: 42
|
||||
constantValueKind: Long
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: 42u
|
||||
constant: 42u
|
||||
constantValueKind: UInt
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
expression: "42"
|
||||
constant: "42"
|
||||
constantValueKind: String
|
||||
Reference in New Issue
Block a user