Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa0ddeb

Browse files
tamasvajkigfoo
authored andcommitted
Fix external type locations in tests
1 parent afd71a0 commit aa0ddeb

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

java/ql/test/kotlin/library-tests/classes/paramTypes.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import java
22

33
// Stop external filepaths from appearing in the results
4-
class ClassLocation extends Class {
4+
class ClassOrInterfaceLocation extends ClassOrInterface {
55
override predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) {
66
exists(string fullPath |
77
super.hasLocationInfo(fullPath, sl, sc, el, ec) |

java/ql/test/kotlin/library-tests/classes/superTypes.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@
4545
| local_anonymous.kt:3:1:28:1 | Class1 | file://<external>/Object.class:0:0:0:0 | Object |
4646
| local_anonymous.kt:5:16:7:9 | new Object(...) { ... } | file://<external>/Object.class:0:0:0:0 | Object |
4747
| local_anonymous.kt:11:9:11:24 | new Object(...) { ... } | file://<external>/Object.class:0:0:0:0 | Object |
48-
| local_anonymous.kt:16:23:16:49 | new Function2<Integer,Integer,Integer>(...) { ... } | file:///usr/local/Cellar/kotlin/1.5.21/libexec/lib/kotlin-stdlib.jar/kotlin/jvm/functions/Function2.class:0:0:0:0 | Function2<Integer,Integer,Integer> |
48+
| local_anonymous.kt:16:23:16:49 | new Function2<Integer,Integer,Integer>(...) { ... } | file://<external>/Function2.class:0:0:0:0 | Function2<Integer,Integer,Integer> |
4949
| local_anonymous.kt:16:23:16:49 | new Function2<Integer,Integer,Integer>(...) { ... } | file://<external>/Object.class:0:0:0:0 | Object |
50-
| local_anonymous.kt:17:23:17:49 | new Function2<Integer,Integer,Integer>(...) { ... } | file:///usr/local/Cellar/kotlin/1.5.21/libexec/lib/kotlin-stdlib.jar/kotlin/jvm/functions/Function2.class:0:0:0:0 | Function2<Integer,Integer,Integer> |
50+
| local_anonymous.kt:17:23:17:49 | new Function2<Integer,Integer,Integer>(...) { ... } | file://<external>/Function2.class:0:0:0:0 | Function2<Integer,Integer,Integer> |
5151
| local_anonymous.kt:17:23:17:49 | new Function2<Integer,Integer,Integer>(...) { ... } | file://<external>/Object.class:0:0:0:0 | Object |
52-
| local_anonymous.kt:21:21:21:31 | new Function1<Class1,Unit>(...) { ... } | file:///usr/local/Cellar/kotlin/1.5.21/libexec/lib/kotlin-stdlib.jar/kotlin/jvm/functions/Function1.class:0:0:0:0 | Function1<Class1,Unit> |
52+
| local_anonymous.kt:21:21:21:31 | new Function1<Class1,Unit>(...) { ... } | file://<external>/Function1.class:0:0:0:0 | Function1<Class1,Unit> |
5353
| local_anonymous.kt:21:21:21:31 | new Function1<Class1,Unit>(...) { ... } | file://<external>/Object.class:0:0:0:0 | Object |
5454
| local_anonymous.kt:25:9:25:27 | LocalClass | file://<external>/Object.class:0:0:0:0 | Object |
5555
| superChain.kt:1:1:1:33 | SuperChain1 | file://<external>/Object.class:0:0:0:0 | Object |

java/ql/test/kotlin/library-tests/classes/superTypes.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import java
22

33
// Stop external filepaths from appearing in the results
4-
class ClassLocation extends Class {
4+
class ClassOrInterfaceLocation extends ClassOrInterface {
55
override predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) {
66
exists(string fullPath |
77
super.hasLocationInfo(fullPath, sl, sc, el, ec) |

java/ql/test/kotlin/library-tests/extensions/methods.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import java
22

33
// Stop external filepaths from appearing in the results
4-
class ClassLocation extends Class {
4+
class ClassOrInterfaceLocation extends ClassOrInterface {
55
override predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) {
66
exists(string fullPath |
77
super.hasLocationInfo(fullPath, sl, sc, el, ec) |

java/ql/test/kotlin/library-tests/multiple_files/method_accesses.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import java
22

33
// Stop external filepaths from appearing in the results
4-
class ClassLocation extends Class {
4+
class ClassOrInterfaceLocation extends ClassOrInterface {
55
override predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) {
66
exists(string fullPath |
77
super.hasLocationInfo(fullPath, sl, sc, el, ec) |

java/ql/test/kotlin/library-tests/type_equivalences/type_equivalences.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import java
22

33
// Stop external filepaths from appearing in the results
4-
class ClassLocation extends Class {
4+
class ClassOrInterfaceLocation extends ClassOrInterface {
55
override predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) {
66
exists(string fullPath |
77
super.hasLocationInfo(fullPath, sl, sc, el, ec) |

0 commit comments

Comments
 (0)