You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test_pwqfilter_operation "--create=10 --output=${tmp_dir}/lookup_test.filter""pass""Create filter for lookup testing""$(cat ${tmp_dir}/known_passwords.txt)"
137
+
138
+
# Test lookup for passwords in the filter
139
+
test_lookup "${tmp_dir}/lookup_test.filter""testpassword""pass""Password in filter should be found"
140
+
test_lookup "${tmp_dir}/lookup_test.filter""admin123""pass""Password in filter should be found"
141
+
test_lookup "${tmp_dir}/lookup_test.filter""solid""pass""Password in filter should be found"
142
+
143
+
# Test lookup for passwords not in the filter
144
+
test_lookup "${tmp_dir}/lookup_test.filter""unknown123""fail""Password not in filter should not be found"
145
+
test_lookup "${tmp_dir}/lookup_test.filter""differentpassword""fail""Password not in filter should not be found"
146
+
147
+
# Test Suite 3: Combined Operations
148
+
printf"\nTesting Combined Operations:\n"
149
+
150
+
# Test create + test-fp-rate
151
+
test_pwqfilter_operation "--create=30 --output=${tmp_dir}/combined.filter --test-fp-rate""pass""Create filter and test FP rate in one command""$(cat ${tmp_dir}/passwords.txt)"
152
+
153
+
# Test lookup + status
154
+
test_pwqfilter_operation "--filter=${tmp_dir}/combined.filter --status""pass""Look up and check status""password123"
0 commit comments