mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
We no longer need the platform-specific directories, so simplify the test organization. If you want to retain the `linux` directory for two tests, or not do this at all, just skip merging this PR. It's purely optional.
10 lines
395 B
Python
10 lines
395 B
Python
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", "c/vendor/cvendor.go"]), "Expected root.go and cvendor.go in baseline"
|