mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
Remove hyphens from the flow testcase generator folder name
So that it can be imported from the autogenerated query `gen.ql`
This commit is contained in:
@@ -130,7 +130,7 @@ with open(os.path.join(queryDir, "qlpack.yml"), "w") as f:
|
|||||||
f.write("name: test-generation-query\nversion: 0.0.0\nlibraryPathDependencies: codeql/java-queries")
|
f.write("name: test-generation-query\nversion: 0.0.0\nlibraryPathDependencies: codeql/java-queries")
|
||||||
with open(qlFile, "w") as f:
|
with open(qlFile, "w") as f:
|
||||||
f.write(
|
f.write(
|
||||||
"import java\nimport utils.GenerateFlowTestCase\n\nclass GenRow extends TargetSummaryModelCsv {\n\n\toverride predicate row(string r) {\n\t\tr = [\n")
|
"import java\nimport utils.flowtestcasegenerator.GenerateFlowTestCase\n\nclass GenRow extends TargetSummaryModelCsv {\n\n\toverride predicate row(string r) {\n\t\tr = [\n")
|
||||||
f.write(",\n".join('\t\t\t"%s"' % spec.strip() for spec in specs))
|
f.write(",\n".join('\t\t\t"%s"' % spec.strip() for spec in specs))
|
||||||
f.write("\n\t\t]\n\t}\n}\n")
|
f.write("\n\t\t]\n\t}\n}\n")
|
||||||
|
|
||||||
Reference in New Issue
Block a user