Skip to content

Commit f77f22b

Browse files
committed
All statics on Tag have a leading .
1 parent bff4a1e commit f77f22b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Sources/SourceKitLSP/Swift/SwiftTestingScanner.swift

Lines changed: 2 additions & 3 deletions
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ final class DocumentTestDiscoveryTests: XCTestCase {
681681
children: [],
682682
tags: [
683683
TestTag(id: ".foo"),
684-
TestTag(id: "Nested.foo"),
684+
TestTag(id: ".Nested.foo"),
685685
TestTag(id: ".bar"),
686686
TestTag(id: ".baz")
687687
]

0 commit comments

Comments
 (0)