Files
codeql/swift/codegen/templates/ql_test_property.mustache
Paolo Tranquilli 86ebb0bb68 Swift: fix qltest skipping and skip isUnknown
Also remove obsolete accessor and function hand-written tests.
2022-06-15 09:16:55 +02:00

11 lines
314 B
Plaintext

// generated by {{generator}}
import codeql.swift.elements
import TestUtils
{{#property}}
from {{class_name}} x{{#is_repeated}}, int index{{/is_repeated}}
where toBeTested(x) and not x.isUnknown()
select x, {{#is_repeated}}index, {{/is_repeated}}x.{{getter}}({{#is_repeated}}index{{/is_repeated}})
{{/property}}