Skip to content

Commit 4cae451

Browse files
Fix CustomPathStateProblem tests to produce meaningful results for C++, Java, and Go
Co-authored-by: MichaelRFairhurst <1627771+MichaelRFairhurst@users.noreply.github.com>
1 parent c4cc54d commit 4cae451

573 files changed

Lines changed: 85 additions & 46708 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
edges
2+
| test.cpp:3:9:3:11 | mid | test.cpp:2:9:2:11 | end | | |
3+
| test.cpp:4:9:4:13 | start | test.cpp:3:9:3:11 | mid | | |
24
nodes
3-
#select
5+
| test.cpp:2:9:2:11 | end | semmle.label | end |
6+
| test.cpp:3:9:3:11 | mid | semmle.label | mid |
7+
| test.cpp:4:9:4:13 | start | semmle.label | start |
8+
#select
9+
| test.cpp:4:9:4:13 | start | test.cpp:2:9:2:11 | end | Path from $@ to $@. | start | test.cpp:4:9:4:13 | start | end | test.cpp:2:9:2:11 | end |

cpp/test/qtil/cpp/graph/test.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
void f1() {
2-
int mid;
3-
int start;
4-
int end;
5-
int unrelated;
6-
start = mid;
7-
start = unrelated;
8-
mid = end;
2+
int end = 42;
3+
int mid = end;
4+
int start = mid;
5+
int unrelated = 0;
96
}
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
edges
2+
| test.go:5:5:5:7 | mid | test.go:4:5:4:7 | end | | |
3+
| test.go:6:5:6:9 | start | test.go:5:5:5:7 | mid | | |
24
nodes
3-
#select
5+
| test.go:4:5:4:7 | end | semmle.label | end |
6+
| test.go:5:5:5:7 | mid | semmle.label | mid |
7+
| test.go:6:5:6:9 | start | semmle.label | start |
8+
#select
9+
| test.go:6:5:6:9 | start | test.go:4:5:4:7 | end | Path from $@ to $@. | start | test.go:6:5:6:9 | start | end | test.go:4:5:4:7 | end |

go/test/qtil/go/graph/test.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
package main
22

33
func f1() {
4-
mid := 0
5-
start := 1
6-
end := 2
7-
unrelated := 3
8-
start = mid
9-
start = unrelated
4+
end := 42
5+
mid := 0
6+
start := 0
7+
unrelated := 0
108
mid = end
9+
start = mid
1110
}
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
edges
2+
| test.java:4:9:4:22 | int mid | test.java:3:9:3:21 | int end | | |
3+
| test.java:5:9:5:24 | int start | test.java:4:9:4:22 | int mid | | |
24
nodes
3-
#select
5+
| test.java:3:9:3:21 | int end | semmle.label | int end |
6+
| test.java:4:9:4:22 | int mid | semmle.label | int mid |
7+
| test.java:5:9:5:24 | int start | semmle.label | int start |
8+
#select
9+
| test.java:5:9:5:24 | int start | test.java:3:9:3:21 | int end | Path from $@ to $@. | start | test.java:5:9:5:24 | int start | end | test.java:3:9:3:21 | int end |
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
class Test {
22
public static void f1() {
3-
int mid = 0;
4-
int start = 0;
5-
int end = 0;
3+
int end = 42;
4+
int mid = end;
5+
int start = mid;
66
int unrelated = 0;
7-
start = mid;
8-
start = unrelated;
9-
mid = end;
107
}
118
}

ruby/test/qtil/ruby/ast/ast.testproj/codeql-database.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

ruby/test/qtil/ruby/ast/ast.testproj/db-ruby/default/cache/.lock

Whitespace-only changes.
Binary file not shown.

0 commit comments

Comments
 (0)