Skip to content

Commit f71d3a0

Browse files
committed
All statics on Tag have a leading .
1 parent 72e6dd5 commit f71d3a0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Sources/SourceKitLSP/Swift/SwiftTestingScanner.swift

+2-3
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,8 @@ struct TestingAttributeData {
104104
components = components.dropFirst(1)
105105
}
106106

107-
// Tags.foo resolves to ".foo", Tags.Nested.foo resolves to "Nested.foo"
108-
let prefix = components.count == 1 ? "." : ""
109-
return "\(prefix)\(components.joined(separator: "."))"
107+
// Tags.foo resolves to ".foo", Tags.Nested.foo resolves to ".Nested.foo"
108+
return ".\(components.joined(separator: "."))"
110109
}
111110
return nil
112111
}

Tests/SourceKitLSPTests/DocumentTestDiscoveryTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ final class DocumentTestDiscoveryTests: XCTestCase {
743743
children: [],
744744
tags: [
745745
TestTag(id: ".foo"),
746-
TestTag(id: "Nested.foo"),
746+
TestTag(id: ".Nested.foo"),
747747
TestTag(id: ".bar"),
748748
TestTag(id: ".baz")
749749
]

0 commit comments

Comments
 (0)