Skip to content

Commit b48377b

Browse files
committed
[test] Update linux test: test/SourceKit/Indexing/index_is_test_candidate
1 parent 40c8904 commit b48377b

File tree

1 file changed

+51
-1
lines changed

1 file changed

+51
-1
lines changed

test/SourceKit/Indexing/index_is_test_candidate.swift.response

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@
3030
key.usr: "s:23index_is_test_candidate8MyStructV0C63_startsWithTest_takesNoParams_returnsVoid_butIsDefinedOnAStructyyF",
3131
key.line: 13,
3232
key.column: 8
33+
},
34+
{
35+
key.kind: source.lang.swift.decl.function.constructor,
36+
key.usr: "s:23index_is_test_candidate8MyStructVACycfc",
37+
key.line: 12,
38+
key.column: 8
3339
}
3440
]
3541
},
@@ -38,7 +44,15 @@
3844
key.name: "XCTestCase",
3945
key.usr: "s:23index_is_test_candidate10XCTestCaseC",
4046
key.line: 15,
41-
key.column: 7
47+
key.column: 7,
48+
key.entities: [
49+
{
50+
key.kind: source.lang.swift.decl.function.constructor,
51+
key.usr: "s:23index_is_test_candidate10XCTestCaseCACycfc",
52+
key.line: 15,
53+
key.column: 7
54+
}
55+
]
4256
},
4357
{
4458
key.kind: source.lang.swift.decl.class,
@@ -70,6 +84,24 @@
7084
key.line: 17,
7185
key.column: 8,
7286
key.is_dynamic: 1
87+
},
88+
{
89+
key.kind: source.lang.swift.decl.function.constructor,
90+
key.usr: "s:23index_is_test_candidate14MyPrivateClass33_E06F4E7BC5F577AB6E2EC6D3ECA1C8B9LLCADycfc",
91+
key.line: 16,
92+
key.column: 43,
93+
key.related: [
94+
{
95+
key.kind: source.lang.swift.ref.function.constructor,
96+
key.name: "init()",
97+
key.usr: "s:23index_is_test_candidate10XCTestCaseCACycfc"
98+
}
99+
],
100+
key.attributes: [
101+
{
102+
key.attribute: source.decl.attribute.override
103+
}
104+
]
73105
}
74106
],
75107
key.is_test_candidate: 1
@@ -164,6 +196,24 @@
164196
key.column: 8,
165197
key.is_dynamic: 1,
166198
key.is_test_candidate: 1
199+
},
200+
{
201+
key.kind: source.lang.swift.decl.function.constructor,
202+
key.usr: "s:23index_is_test_candidate7MyClassCACycfc",
203+
key.line: 20,
204+
key.column: 35,
205+
key.related: [
206+
{
207+
key.kind: source.lang.swift.ref.function.constructor,
208+
key.name: "init()",
209+
key.usr: "s:23index_is_test_candidate10XCTestCaseCACycfc"
210+
}
211+
],
212+
key.attributes: [
213+
{
214+
key.attribute: source.decl.attribute.override
215+
}
216+
]
167217
}
168218
],
169219
key.is_test_candidate: 1

0 commit comments

Comments
 (0)