Skip to content

Commit 3869123

Browse files
committed
sourcekitd/test: add test for cursor-info returning group name for user modules
1 parent 69cf097 commit 3869123

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"GroupA": [
3+
"FooSwiftModule.swift",
4+
]
5+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// RUN: %empty-directory(%t.mod)
2+
// RUN: %target-swift-frontend -module-name MyModule -emit-module -emit-module-path %t.mod/MyModule.swiftmodule -emit-module-doc -emit-module-doc-path %t.mod/MyModule.swiftdoc -group-info-path %S/Inputs/group.json %S/Inputs/FooSwiftModule.swift
3+
4+
// RUN: %sourcekitd-test -req=cursor -pos=7:10 %s -- %s -I %t.mod | %FileCheck -check-prefix=CHECK %s
5+
6+
import MyModule
7+
_ = fooSwiftFunc()
8+
9+
// CHECK: <Group>GroupA</Group>

0 commit comments

Comments
 (0)