MCPcopy Index your code
hub / github.com/bcrypt-ruby/bcrypt-ruby / testCheckpw_success

Method testCheckpw_success

spec/TestBCrypt.java:149–158  ·  view source on GitHub ↗

Test method for 'BCrypt.checkpw(String, String)' expecting success

()

Source from the content-addressed store, hash-verified

147 * expecting success
148 */
149 public void testCheckpw_success() {
150 System.out.print("BCrypt.checkpw w/ good passwords: ");
151 for (int i = 0; i < test_vectors.length; i++) {
152 String plain = test_vectors[i][0];
153 String expected = test_vectors[i][2];
154 assertTrue(BCrypt.checkpw(plain, expected));
155 System.out.print(".");
156 }
157 System.out.println("");
158 }
159
160 /**
161 * Test method for 'BCrypt.checkpw(String, String)'

Callers

nothing calls this directly

Calls 1

checkpwMethod · 0.95

Tested by

no test coverage detected