-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added correctness check of test data + fixed huge amount of incorrect…
… code in test data
- Loading branch information
1 parent
c19a16f
commit f0d4d7b
Showing
139 changed files
with
535 additions
and
448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// FLOW: IN | ||
|
||
class A(var b: Boolean) { | ||
var foo: Int | ||
var foo: Int = 0 | ||
set(value) { | ||
field = if (b) value else 0 | ||
} | ||
|
9 changes: 4 additions & 5 deletions
9
idea/testData/slicer/inflow/defaultGetterFieldInSetter.leafGroups.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
idea/testData/slicer/inflow/defaultGetterFieldInSetter.results.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
idea/testData/slicer/inflow/diamondHierarchyJKMiddleInterfaceFun.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ fun foo(f: String.(Int) -> Unit) { | |
|
||
fun test() { | ||
foo { | ||
println(<caret>it) | ||
val v = <caret>it | ||
} | ||
} | ||
|
||
|
6 changes: 3 additions & 3 deletions
6
idea/testData/slicer/inflow/extensionLambdaImplicitParameter.leafGroups.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
idea/testData/slicer/inflow/extensionLambdaImplicitParameter.nullnessGroups.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[NotNull Values] | ||
15 println(<bold>it</bold>) | ||
15 println(<bold>it</bold>) | ||
15 val v = <bold>it</bold> | ||
15 val v = <bold>it</bold> | ||
|
2 changes: 1 addition & 1 deletion
2
idea/testData/slicer/inflow/extensionLambdaImplicitParameter.results.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ fun foo(f: String.(Int) -> Unit) { | |
|
||
fun test() { | ||
foo { i -> | ||
println(<caret>i) | ||
val v = <caret>i | ||
} | ||
} | ||
|
||
|
6 changes: 3 additions & 3 deletions
6
idea/testData/slicer/inflow/extensionLambdaParameter.leafGroups.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
idea/testData/slicer/inflow/extensionLambdaParameter.nullnessGroups.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[NotNull Values] | ||
15 println(<bold>i</bold>) | ||
15 println(<bold>i</bold>) | ||
15 val v = <bold>i</bold> | ||
15 val v = <bold>i</bold> | ||
|
2 changes: 1 addition & 1 deletion
2
idea/testData/slicer/inflow/extensionLambdaParameter.results.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
class J { | ||
void test() { | ||
FunParamererKt.foo(1): | ||
FunParamererKt.foo(1, "2"): | ||
FunParamererKt.foo(1); | ||
FunParamererKt.foo(1, "2"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// FLOW: IN | ||
// WITH_RUNTIME | ||
|
||
@JvmOverloads | ||
fun foo(<caret>n: Int, s: String = "???") { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
3 FunParamererKt.foo(<bold>1</bold>): | ||
4 fun foo(<bold>n: Int</bold>, s: String = "???") { | ||
3 FunParamererKt.foo(<bold>1</bold>): | ||
3 FunParamererKt.foo(<bold>1</bold>); | ||
5 fun foo(<bold>n: Int</bold>, s: String = "???") { | ||
3 FunParamererKt.foo(<bold>1</bold>); | ||
|
||
9 foo(<bold>1</bold>) | ||
4 fun foo(<bold>n: Int</bold>, s: String = "???") { | ||
9 foo(<bold>1</bold>) | ||
10 foo(<bold>1</bold>) | ||
5 fun foo(<bold>n: Int</bold>, s: String = "???") { | ||
10 foo(<bold>1</bold>) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[NotNull Values] | ||
4 fun foo(<bold>n: Int</bold>, s: String = "???") { | ||
4 fun foo(<bold>n: Int</bold>, s: String = "???") { | ||
5 fun foo(<bold>n: Int</bold>, s: String = "???") { | ||
5 fun foo(<bold>n: Int</bold>, s: String = "???") { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
4 fun foo(<bold>n: Int</bold>, s: String = "???") { | ||
3 FunParamererKt.foo(<bold>1</bold>): | ||
4 FunParamererKt.foo(<bold>1</bold>, "2"): | ||
9 foo(<bold>1</bold>) | ||
10 foo(<bold>1</bold>, "2") | ||
11 foo(<bold>1</bold>, s = "2") | ||
12 foo(n = <bold>1</bold>, s = "2") | ||
13 foo(s = "2", n = <bold>1</bold>) | ||
5 fun foo(<bold>n: Int</bold>, s: String = "???") { | ||
3 FunParamererKt.foo(<bold>1</bold>); | ||
4 FunParamererKt.foo(<bold>1</bold>, "2"); | ||
10 foo(<bold>1</bold>) | ||
11 foo(<bold>1</bold>, "2") | ||
12 foo(<bold>1</bold>, s = "2") | ||
13 foo(n = <bold>1</bold>, s = "2") | ||
14 foo(s = "2", n = <bold>1</bold>) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
class J { | ||
void test() { | ||
FunParamererWithDefaultKt.foo(1): | ||
FunParamererWithDefaultKt.foo(1, "2"): | ||
FunParamererWithDefaultKt.foo(1); | ||
FunParamererWithDefaultKt.foo(1, "2"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// FLOW: IN | ||
// WITH_RUNTIME | ||
|
||
@JvmOverloads | ||
fun foo(n: Int, <caret>s: String = "???") { | ||
|
18 changes: 9 additions & 9 deletions
18
idea/testData/slicer/inflow/funParamererWithDefault.leafGroups.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
4 FunParamererWithDefaultKt.foo(1, <bold>"2"</bold>): | ||
4 fun foo(n: Int, <bold>s: String = "???"</bold>) { | ||
4 FunParamererWithDefaultKt.foo(1, <bold>"2"</bold>): | ||
4 FunParamererWithDefaultKt.foo(1, <bold>"2"</bold>); | ||
5 fun foo(n: Int, <bold>s: String = "???"</bold>) { | ||
4 FunParamererWithDefaultKt.foo(1, <bold>"2"</bold>); | ||
|
||
10 foo(1, <bold>"2"</bold>) | ||
4 fun foo(n: Int, <bold>s: String = "???"</bold>) { | ||
10 foo(1, <bold>"2"</bold>) | ||
11 foo(1, <bold>"2"</bold>) | ||
5 fun foo(n: Int, <bold>s: String = "???"</bold>) { | ||
11 foo(1, <bold>"2"</bold>) | ||
|
||
4 fun foo(n: Int, s: String = <bold>"???"</bold>) { | ||
4 fun foo(n: Int, <bold>s: String = "???"</bold>) { | ||
4 fun foo(n: Int, s: String = <bold>"???"</bold>) { | ||
5 fun foo(n: Int, s: String = <bold>"???"</bold>) { | ||
5 fun foo(n: Int, <bold>s: String = "???"</bold>) { | ||
5 fun foo(n: Int, s: String = <bold>"???"</bold>) { | ||
|
4 changes: 2 additions & 2 deletions
4
idea/testData/slicer/inflow/funParamererWithDefault.nullnessGroups.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[NotNull Values] | ||
4 fun foo(n: Int, <bold>s: String = "???"</bold>) { | ||
4 fun foo(n: Int, <bold>s: String = "???"</bold>) { | ||
5 fun foo(n: Int, <bold>s: String = "???"</bold>) { | ||
5 fun foo(n: Int, <bold>s: String = "???"</bold>) { | ||
|
14 changes: 7 additions & 7 deletions
14
idea/testData/slicer/inflow/funParamererWithDefault.results.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
4 fun foo(n: Int, <bold>s: String = "???"</bold>) { | ||
4 fun foo(n: Int, s: String = <bold>"???"</bold>) { | ||
10 foo(1, <bold>"2"</bold>) | ||
4 FunParamererWithDefaultKt.foo(1, <bold>"2"</bold>): | ||
11 foo(1, s = <bold>"2"</bold>) | ||
12 foo(n = 1, s = <bold>"2"</bold>) | ||
13 foo(s = <bold>"2"</bold>, n = 1) | ||
5 fun foo(n: Int, <bold>s: String = "???"</bold>) { | ||
5 fun foo(n: Int, s: String = <bold>"???"</bold>) { | ||
4 FunParamererWithDefaultKt.foo(1, <bold>"2"</bold>); | ||
11 foo(1, <bold>"2"</bold>) | ||
12 foo(1, s = <bold>"2"</bold>) | ||
13 foo(n = 1, s = <bold>"2"</bold>) | ||
14 foo(s = <bold>"2"</bold>, n = 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
idea/testData/slicer/inflow/getterAndSetterUsingField.leafGroups.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
idea/testData/slicer/inflow/getterAndSetterUsingField.results.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// FLOW: IN | ||
|
||
fun foo(f: (Int) -> Unit): Int { | ||
return f(1) | ||
fun foo(f: (Int) -> Unit) { | ||
f(1) | ||
} | ||
|
||
fun test() { | ||
foo { | ||
println(<caret>it) | ||
val v = <caret>it | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
idea/testData/slicer/inflow/lambdaImplicitParameter.leafGroups.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
4 return f(<bold>1</bold>) | ||
9 println(<bold>it</bold>) | ||
4 f(<bold>1</bold>) | ||
9 val v = <bold>it</bold> | ||
8 [LAMBDA CALLS] foo <bold>{</bold> | ||
3 [LAMBDA CALLS] fun foo(<bold>f: (Int) -> Unit</bold>): Int { | ||
4 return f(<bold>1</bold>) | ||
3 [LAMBDA CALLS] fun foo(<bold>f: (Int) -> Unit</bold>) { | ||
4 f(<bold>1</bold>) | ||
|
5 changes: 3 additions & 2 deletions
5
idea/testData/slicer/inflow/lambdaImplicitParameter.nullnessGroups.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[NotNull Values] | ||
9 println(<bold>it</bold>) | ||
9 println(<bold>it</bold>) | ||
9 val v = <bold>it</bold> | ||
9 val v = <bold>it</bold> | ||
|
6 changes: 3 additions & 3 deletions
6
idea/testData/slicer/inflow/lambdaImplicitParameter.results.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
9 println(<bold>it</bold>) | ||
9 val v = <bold>it</bold> | ||
8 [LAMBDA CALLS] foo <bold>{</bold> | ||
3 [LAMBDA CALLS] fun foo(<bold>f: (Int) -> Unit</bold>): Int { | ||
4 return f(<bold>1</bold>) | ||
3 [LAMBDA CALLS] fun foo(<bold>f: (Int) -> Unit</bold>) { | ||
4 f(<bold>1</bold>) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// FLOW: IN | ||
|
||
fun foo(f: (Int) -> Unit): Int { | ||
return f(1) | ||
fun foo(f: (Int) -> Unit) { | ||
f(1) | ||
} | ||
|
||
fun test() { | ||
foo { value -> | ||
println(<caret>value) | ||
val v = <caret>value | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
4 return f(<bold>1</bold>) | ||
9 println(<bold>value</bold>) | ||
4 f(<bold>1</bold>) | ||
9 val v = <bold>value</bold> | ||
8 foo { <bold>value</bold> -> | ||
8 [LAMBDA CALLS] foo <bold>{ value -></bold> | ||
3 [LAMBDA CALLS] fun foo(<bold>f: (Int) -> Unit</bold>): Int { | ||
4 return f(<bold>1</bold>) | ||
3 [LAMBDA CALLS] fun foo(<bold>f: (Int) -> Unit</bold>) { | ||
4 f(<bold>1</bold>) | ||
|
Oops, something went wrong.