Skip to content

Commit 22aa7f3

Browse files
committed
Rust: Expand the test cases around IDs as sensitive data.
1 parent 1124355 commit 22aa7f3

File tree

1 file changed

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

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fn get_next_token() -> String { get_string() }
8888

8989
fn test_credentials(
9090
account_key: &str, accnt_key: &str, license_key: &str, secret_key: &str, is_secret: bool, num_accounts: i64,
91-
username: String, user_name: String, userid: i64, user_id: i64, my_user_id_64: i64, unique_id: i64, uid: i64,
91+
username: String, user_name: String, userid: i64, user_id: i64, my_user_id_64: i64, id: i64, uid: i64, uuid: i64, guid: i64, unique_id: i64,
9292
sessionkey: &[u64; 4], session_key: &[u64; 4], hashkey: &[u64; 4], hash_key: &[u64; 4], sessionkeypath: &[u64; 4], account_key_path: &[u64; 4],
9393
ms: &MyStruct
9494
) {
@@ -119,8 +119,12 @@ fn test_credentials(
119119

120120
sink(is_secret);
121121
sink(num_accounts); // $ SPURIOUS: sensitive=id
122-
sink(unique_id);
122+
sink(id);
123123
sink(uid); // $ SPURIOUS: sensitive=id
124+
sink(uuid); // $ SPURIOUS: sensitive=id
125+
sink(guid);
126+
sink(unique_id);
127+
124128
sink(hashkey);
125129
sink(hash_key);
126130
sink(sessionkeypath); // $ SPURIOUS: sensitive=id

0 commit comments

Comments
 (0)