Skip to content

Commit

Permalink
Add configure-baseline integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
smowton committed Aug 20, 2024
1 parent 15b5bcc commit 3acab64
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package abc
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package abc
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package abc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package abc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import os.path
import json

def test(codeql, go):
codeql.database.init(source_root="src")
baseline_info_path = os.path.join("test-db", "baseline-info.json")
with open(baseline_info_path, "r") as f:
baseline_info = json.load(f)
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 comments on commit 3acab64

Please sign in to comment.