Branch Coverage

lib/Crypt/Argon2.xs
Criterion Covered Total %
branch 18 40 45.0


line true false branch
11 19 0 const char* string = SvPVbyte(value, len);
14 0 19 if (end == string)
18 0 0 if (base > 1024)
35 1 9 if (name_len == 8 && strnEQ(name, "argon2id", 8))
0 1 if (name_len == 8 && strnEQ(name, "argon2id", 8))
37 9 0 else if (name_len == 7 && strnEQ(name, "argon2i", 7))
0 9 else if (name_len == 7 && strnEQ(name, "argon2i", 7))
39 0 0 else if (name_len == 7 && strnEQ(name, "argon2d", 7))
0 0 else if (name_len == 7 && strnEQ(name, "argon2d", 7))
47 1 0 const char* name = SvPV(name_sv, name_len);
55 10 0 const char* password_raw = SvPVbyte(password, password_len);
56 10 0 const char* salt_raw = SvPVbyte(salt, salt_len);
67 0 10 if (rc != ARGON2_OK) {
79 9 0 const char* password_raw = SvPVbyte(password, password_len);
80 9 0 const char* salt_raw = SvPVbyte(salt, salt_len);
90 0 9 if (rc != ARGON2_OK) {
137 9 0 encoded_raw = SvPVbyte(encoded, encoded_len);
138 9 0 if (ix == 4) {
142 9 0 password_raw = SvPVbyte(password, password_len);
143 9 0 status = argon2_verify(SvPVbyte_nolen(encoded), password_raw, password_len, ix);