Skip to content

Commit 69b277d

Browse files
committed
[SourceKit] Fix a syntax error in the index_is_test_candidate_objc test
1 parent 29af9f8 commit 69b277d

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

test/SourceKit/Indexing/index_is_test_candidate_objc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct MyStruct {
1212
func test_startsWithTest_takesNoParams_returnsVoid_butIsDefinedOnAStruct() {}
1313
}
1414

15-
private class MyPrivateClass() {
15+
private class MyPrivateClass {
1616
func test_startsWithTest_takesNoParams_returnsVoid_andIsPrivate() {}
1717
}
1818

test/SourceKit/Indexing/index_is_test_candidate_objc.swift.response

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,17 @@
3838
key.name: "MyPrivateClass",
3939
key.usr: "s:C28index_is_test_candidate_objcP33_32FED72643814BE1A523406CD2E729AA14MyPrivateClass",
4040
key.line: 15,
41-
key.column: 15
41+
key.column: 15,
42+
key.entities: [
43+
{
44+
key.kind: source.lang.swift.decl.function.method.instance,
45+
key.name: "test_startsWithTest_takesNoParams_returnsVoid_andIsPrivate()",
46+
key.usr: "s:FC28index_is_test_candidate_objcP33_32FED72643814BE1A523406CD2E729AA14MyPrivateClass58test_startsWithTest_takesNoParams_returnsVoid_andIsPrivateFT_T_",
47+
key.line: 16,
48+
key.column: 8,
49+
key.is_test_candidate: 1
50+
}
51+
]
4252
},
4353
{
4454
key.kind: source.lang.swift.decl.class,

0 commit comments

Comments
 (0)