Skip to content

Commit 69f13f4

Browse files
committed
Update tag tests
1 parent f71d3a0 commit 69f13f4

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Sources/SourceKitLSP/Swift/SwiftTestingScanner.swift

+1
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ fileprivate extension MemberAccessExprSyntax {
366366
} else if let baseMemberAccessExpr = base?.as(MemberAccessExprSyntax.self) {
367367
return baseMemberAccessExpr.components + [declName.baseName.text]
368368
}
369+
return [declName.baseName.text]
369370
}
370371
}
371372

Tests/SourceKitLSPTests/DocumentTestDiscoveryTests.swift

+6-6
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ final class DocumentTestDiscoveryTests: XCTestCase {
622622
style: TestStyle.swiftTesting,
623623
location: Location(uri: uri, range: positions["2️⃣"]..<positions["3️⃣"]),
624624
children: [],
625-
tags: [TestTag(id: ".red"), TestTag(id: ".blue")]
625+
tags: [TestTag(id: "red"), TestTag(id: "blue")]
626626
)
627627
],
628628
tags: [TestTag(id: "green")]
@@ -742,14 +742,14 @@ final class DocumentTestDiscoveryTests: XCTestCase {
742742
location: Location(uri: uri, range: positions["2️⃣"]..<positions["3️⃣"]),
743743
children: [],
744744
tags: [
745-
TestTag(id: ".foo"),
746-
TestTag(id: ".Nested.foo"),
747-
TestTag(id: ".bar"),
748-
TestTag(id: ".baz")
745+
TestTag(id: "foo"),
746+
TestTag(id: "Nested.foo"),
747+
TestTag(id: "bar"),
748+
TestTag(id: "baz")
749749
]
750750
)
751751
],
752-
tags: [TestTag(id: ".suite")]
752+
tags: [TestTag(id: "suite")]
753753
)
754754
]
755755
)

0 commit comments

Comments
 (0)