Branch Coverage

inc/CryptX_Mac_PMAC.xs.inc
Criterion Covered Total %
branch 44 78 56.4


line true false branch
17 0 483 if (id == -1) croak("FATAL: find_cipher failed for '%s'", cipher_name);
19 483 0 if (!SvPOK_spec(key)) croak("FATAL: key must be string/buffer scalar");
0 483 if (!SvPOK_spec(key)) croak("FATAL: key must be string/buffer scalar");
0 0 if (!SvPOK_spec(key)) croak("FATAL: key must be string/buffer scalar");
0 0 if (!SvPOK_spec(key)) croak("FATAL: key must be string/buffer scalar");
0 0 if (!SvPOK_spec(key)) croak("FATAL: key must be string/buffer scalar");
23 0 483 if (!RETVAL) croak("FATAL: Newz failed");
26 0 483 if (rv != CRYPT_OK) {
47 0 0 if (!RETVAL) croak("FATAL: Newz failed");
60 1 487 if (self->finalized) croak("FATAL: MAC object already finalized");
61 497 487 for(i = 1; i < items; i++) {
63 469 28 if (in_data_len > 0) {
65 0 469 if (rv != CRYPT_OK) croak("FATAL: pmac_process failed: %s", error_to_string(rv));
68 0 487 XPUSHs(ST(0)); /* return self */
84 1 483 if (self->finalized) croak("FATAL: MAC object already finalized");
87 0 483 if (rv != CRYPT_OK) croak("FATAL: pmac_done failed: %s", error_to_string(rv));
90 1 482 if (ix == 3) {
92 0 1 if (rv != CRYPT_OK) croak("FATAL: base64url_encode failed: %s", error_to_string(rv));
95 1 481 else if (ix == 2) {
97 0 1 if (rv != CRYPT_OK) croak("FATAL: base64_encode failed: %s", error_to_string(rv));
100 15 466 else if (ix == 1) {
102 0 15 if (rv != CRYPT_OK) croak("FATAL: base16_encode failed: %s", error_to_string(rv));
123 52 0 if (!SvPOK_spec(key)) croak("FATAL: key must be string/buffer scalar");
0 52 if (!SvPOK_spec(key)) croak("FATAL: key must be string/buffer scalar");
0 0 if (!SvPOK_spec(key)) croak("FATAL: key must be string/buffer scalar");
0 0 if (!SvPOK_spec(key)) croak("FATAL: key must be string/buffer scalar");
0 0 if (!SvPOK_spec(key)) croak("FATAL: key must be string/buffer scalar");
132 0 52 if (id == -1) croak("FATAL: find_cipher failed for '%s'", cipher_name);
134 0 52 if (rv != CRYPT_OK) croak("FATAL: pmac_init failed: %s", error_to_string(rv));
135 60 52 for (i = 2; i < items; i++) {
137 44 16 if (inlen > 0) {
139 0 44 if (rv != CRYPT_OK) croak("FATAL: pmac_process failed: %s", error_to_string(rv));
143 0 52 if (rv != CRYPT_OK) croak("FATAL: pmac_done failed: %s", error_to_string(rv));
146 13 39 if (ix == 3) {
148 0 13 if (rv != CRYPT_OK) croak("FATAL: base64url_encode failed: %s", error_to_string(rv));
151 13 26 else if (ix == 2) {
153 0 13 if (rv != CRYPT_OK) croak("FATAL: base64_encode failed: %s", error_to_string(rv));
156 13 13 else if (ix == 1) {
158 0 13 if (rv != CRYPT_OK) croak("FATAL: base16_encode failed: %s", error_to_string(rv));