@@ -102,17 +102,17 @@ func os_log(_ message: StaticString,
102102// --- tests ---
103103
104104func test1( password: String , passwordHash : String , passphrase: String , pass_phrase: String ) {
105- print ( password) // $ hasCleartextLogging=105
106- print ( password, separator: " " ) // $ $ hasCleartextLogging=106
107- print ( " " , separator: password) // $ hasCleartextLogging=107
108- print ( password, separator: " " , terminator: " " ) // $ hasCleartextLogging=108
109- print ( " " , separator: password, terminator: " " ) // $ hasCleartextLogging=109
110- print ( " " , separator: " " , terminator: password) // $ hasCleartextLogging=110
105+ print ( password) // $ hasCleartextLogging=105
106+ print ( password, separator: " " ) // $ $ hasCleartextLogging=106
107+ print ( " " , separator: password) // $ hasCleartextLogging=107
108+ print ( password, separator: " " , terminator: " " ) // $ hasCleartextLogging=108
109+ print ( " " , separator: password, terminator: " " ) // $ hasCleartextLogging=109
110+ print ( " " , separator: " " , terminator: password) // $ hasCleartextLogging=110
111111 print ( passwordHash) // safe
112112
113- debugPrint ( password) // $ hasCleartextLogging=113
113+ debugPrint ( password) // $ hasCleartextLogging=113
114114
115- dump ( password) // $ hasCleartextLogging=115
115+ dump ( password) // $ hasCleartextLogging=115
116116
117117 NSLog ( password) // $ hasCleartextLogging=117
118118 NSLog ( " %@ " , password) // $ hasCleartextLogging=118
@@ -258,7 +258,7 @@ func test4(harmless: String, password: String) {
258258 print ( myString12) // $ hasCleartextLogging=257
259259
260260 print ( password, to: & myString13) // $ safe - only printed to another string
261- debugPrint ( password, to: & myString13) // $ safe - only printed to another string
261+ debugPrint ( password, to: & myString13) // $ safe - only printed to another string
262262 dump ( password, to: & myString13) // $ safe - only printed to another string
263263 myString13. write ( password) // safe - only printed to another string
264264 password. write ( to: & myString13) // safe - only printed to another string
0 commit comments