@@ -102,17 +102,17 @@ func os_log(_ message: StaticString,
102
102
// --- tests ---
103
103
104
104
func 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
111
111
print ( passwordHash) // safe
112
112
113
- debugPrint ( password) // $ hasCleartextLogging=113
113
+ debugPrint ( password) // $ hasCleartextLogging=113
114
114
115
- dump ( password) // $ hasCleartextLogging=115
115
+ dump ( password) // $ hasCleartextLogging=115
116
116
117
117
NSLog ( password) // $ hasCleartextLogging=117
118
118
NSLog ( " %@ " , password) // $ hasCleartextLogging=118
@@ -258,7 +258,7 @@ func test4(harmless: String, password: String) {
258
258
print ( myString12) // $ hasCleartextLogging=257
259
259
260
260
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
262
262
dump ( password, to: & myString13) // $ safe - only printed to another string
263
263
myString13. write ( password) // safe - only printed to another string
264
264
password. write ( to: & myString13) // safe - only printed to another string
0 commit comments