Skip to content

Commit 2256467

Browse files
committed
Remove location
1 parent b9c058f commit 2256467

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Tests/SparkConnectTests/SQLTests.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,16 @@ struct SQLTests {
3030

3131
let regexID = /#\d+L?/
3232
let regexPlanId = /plan_id=\d+/
33+
let regexLocation = /file:\w+/
3334

3435
private func removeID(_ str: String) -> String {
3536
return str.replacing(regexPlanId, with: "plan_id=").replacing(regexID, with: "#")
3637
}
3738

39+
private func removeLocation(_ str: String) -> String {
40+
return str.replacing(regexLocation, with: "*")
41+
}
42+
3843
@Test
3944
func testRemoveID() {
4045
#expect(removeID("123") == "123")

0 commit comments

Comments
 (0)