Skip to content

Commit 8a6c529

Browse files
committed
[SourceKit] Add test case for empty and problematic 'request.name'
1 parent 57b8d6c commit 8a6c529

File tree

3 files changed

+2666
-0
lines changed

3 files changed

+2666
-0
lines changed

test/SourceKit/DocumentStructure/structure.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@
66

77
// RUN: %sourcekitd-test -req=structure %S/../Inputs/placeholders.swift | %sed_clean > %t.placeholders.response
88
// RUN: diff -u %s.placeholders.response %t.placeholders.response
9+
10+
// RUN: %sourcekitd-test -req=structure %S/Inputs/main.swift -name -foobar | %sed_clean > %t.foobar.response
11+
// RUN: diff -u %s.foobar.response %t.foobar.response
12+
13+
// RUN: %sourcekitd-test -req=structure -text-input %S/Inputs/main.swift | %sed_clean > %t.empty.response
14+
// RUN: diff -u %s.empty.response %t.empty.response

0 commit comments

Comments
 (0)