Skip to content

Commit 4778ef6

Browse files
committed
Rust: Add a test case for password_confirmation.
1 parent 8f6f9f4 commit 4778ef6

File tree

1 file changed

+2
-1
lines changed
  • rust/ql/test/library-tests/sensitivedata

1 file changed

+2
-1
lines changed

rust/ql/test/library-tests/sensitivedata/test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl MyStruct {
2323
fn get_password() -> String { get_string() }
2424

2525
fn test_passwords(
26-
password: &str, pass_word: &str, passwd: &str, my_password: &str, password_str: &str,
26+
password: &str, pass_word: &str, passwd: &str, my_password: &str, password_str: &str, password_confirmation: &str,
2727
pass_phrase: &str, passphrase: &str, passPhrase: &str, backup_code: &str,
2828
auth_key: &str, authkey: &str, authKey: &str, authentication_key: &str, authenticationkey: &str, authenticationKey: &str, oauth: &str,
2929
one_time_code: &str,
@@ -37,6 +37,7 @@ fn test_passwords(
3737
sink(passwd); // $ sensitive=password
3838
sink(my_password); // $ sensitive=password
3939
sink(password_str); // $ sensitive=password
40+
sink(password_confirmation); // $ sensitive=password
4041
sink(pass_phrase); // $ sensitive=password
4142
sink(passphrase); // $ sensitive=password
4243
sink(passPhrase); // $ sensitive=password

0 commit comments

Comments
 (0)