Skip to content

Commit 288bdc2

Browse files
committed
Swift: add diagnostics test case
1 parent b39cf7e commit 288bdc2

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| file://:0:0:0:0 | Diagnostics | getText: | Hello, warning | getKind: | 2 |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import codeql.swift.elements
2+
import TestUtils
3+
4+
from Diagnostics x, string getText, int getKind
5+
where
6+
getText = x.getText() and
7+
getKind = x.getKind()
8+
select x, "getText:", getText, "getKind:", getKind
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#warning("Hello, warning")

swift/ql/test/extractor-tests/generated/Diagnostics/MISSING_SOURCE.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)