Files
codeql/swift/ql/test/TestUtils.qll
2022-06-14 18:01:29 +02:00

18 lines
339 B
Plaintext

private import codeql.swift.elements
cached
predicate toBeTested(Element e) {
e instanceof File
or
exists(Locatable loc |
loc.getLocation().getFile().getName().matches("%swift/ql/test%") and
(
e = loc
or
e = loc.(ValueDecl).getInterfaceType()
or
e = loc.(NominalTypeDecl).getType()
)
)
}