We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9c058f commit 2256467Copy full SHA for 2256467
Tests/SparkConnectTests/SQLTests.swift
@@ -30,11 +30,16 @@ struct SQLTests {
30
31
let regexID = /#\d+L?/
32
let regexPlanId = /plan_id=\d+/
33
+ let regexLocation = /file:\w+/
34
35
private func removeID(_ str: String) -> String {
36
return str.replacing(regexPlanId, with: "plan_id=").replacing(regexID, with: "#")
37
}
38
39
+ private func removeLocation(_ str: String) -> String {
40
+ return str.replacing(regexLocation, with: "*")
41
+ }
42
+
43
@Test
44
func testRemoveID() {
45
#expect(removeID("123") == "123")
0 commit comments