mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
17 lines
526 B
Plaintext
17 lines
526 B
Plaintext
// generated by {{generator}}
|
|
|
|
import codeql.swift.elements
|
|
import TestUtils
|
|
|
|
from {{class_name}} x{{#properties}}, {{#is_single}}{{type}}{{/is_single}}{{#is_predicate}}string{{/is_predicate}} {{getter}}{{/properties}}
|
|
where toBeTested(x) and not x.isUnknown()
|
|
{{#properties}}
|
|
{{#is_single}}
|
|
and {{getter}} = x.{{getter}}()
|
|
{{/is_single}}
|
|
{{#is_predicate}}
|
|
and if x.{{getter}}() then {{getter}} = "yes" else {{getter}} = "no"
|
|
{{/is_predicate}}
|
|
{{/properties}}
|
|
select x{{#properties}}, "{{getter}}:", {{getter}}{{/properties}}
|