mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
This collapses all generated test QL sources into a single one per directory, using query predicates to run the different tests. This should improve the time required to run generated tests.
19 lines
605 B
Plaintext
Generated
19 lines
605 B
Plaintext
Generated
// generated by codegen/codegen.py, do not edit
|
|
import codeql.swift.elements
|
|
import TestUtils
|
|
|
|
query predicate instances(
|
|
File x, string primaryQlClasses, string getName__label, string getName,
|
|
string isSuccessfullyExtracted__label, string isSuccessfullyExtracted
|
|
) {
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
primaryQlClasses = x.getPrimaryQlClasses() and
|
|
getName__label = "getName:" and
|
|
getName = x.getName() and
|
|
isSuccessfullyExtracted__label = "isSuccessfullyExtracted:" and
|
|
if x.isSuccessfullyExtracted()
|
|
then isSuccessfullyExtracted = "yes"
|
|
else isSuccessfullyExtracted = "no"
|
|
}
|