Files
codeql/swift/ql/test/extractor-tests/generated/File/File.ql
Paolo Tranquilli 6bbf1e3bc1 Codegen: use one generated test file per directory
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.
2025-06-25 11:44:54 +02:00

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"
}