Skip to content

Commit 3acab64

Browse files
committed
Add configure-baseline integration test
1 parent 15b5bcc commit 3acab64

File tree

7 files changed

+13
-0
lines changed

7 files changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package abc

go/ql/integration-tests/all-platforms/go/configure-baseline/src/a/vendor/modules.txt

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package abc

go/ql/integration-tests/all-platforms/go/configure-baseline/src/b/vendor/modules.txt

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package abc
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package abc
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import os.path
2+
import json
3+
4+
def test(codeql, go):
5+
codeql.database.init(source_root="src")
6+
baseline_info_path = os.path.join("test-db", "baseline-info.json")
7+
with open(baseline_info_path, "r") as f:
8+
baseline_info = json.load(f)
9+
assert set(baseline_info["languages"]["go"]["files"]) == set(["root.go", os.path.join("c", "vendor", "cvendor.go")]), "Expected root.go and cvendor.go in baseline"

0 commit comments

Comments
 (0)