Branch Coverage

inc/CryptX_Mac_BLAKE2s.xs.inc
Criterion Covered Total %
branch 37 62 59.6


line true false branch
15 18 0 if (!SvPOK_spec(key)) croak("FATAL: key must be string/buffer scalar");
0 18 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");
19 0 18 if (!RETVAL) croak("FATAL: Newz failed");
22 0 18 if (rv != CRYPT_OK) {
39 0 0 if (!RETVAL) croak("FATAL: Newz failed");
52 30 22 for(i = 1; i < items; i++) {
54 26 4 if (in_data_len > 0) {
56 0 26 if (rv != CRYPT_OK) croak("FATAL: blake2s_process failed: %s", error_to_string(rv));
59 0 22 XPUSHs(ST(0)); /* return self */
77 0 18 if (rv != CRYPT_OK) croak("FATAL: blake2smac_done failed: %s", error_to_string(rv));
79 1 17 if (ix == 3) {
81 0 1 if (rv != CRYPT_OK) croak("FATAL: base64url_encode failed: %s", error_to_string(rv));
84 1 16 else if (ix == 2) {
86 0 1 if (rv != CRYPT_OK) croak("FATAL: base64_encode failed: %s", error_to_string(rv));
89 8 8 else if (ix == 1) {
91 0 8 if (rv != CRYPT_OK) croak("FATAL: base16_encode failed: %s", error_to_string(rv));
118 28 0 if (size < len) len = size;
120 0 28 if (rv != CRYPT_OK) croak("FATAL: blake2smac_init failed: %s", error_to_string(rv));
121 36 28 for (i = 2; i < items; i++) {
123 28 8 if (inlen > 0) {
125 0 28 if (rv != CRYPT_OK) croak("FATAL: blake2smac_process failed: %s", error_to_string(rv));
129 0 28 if (rv != CRYPT_OK) croak("FATAL: blake2smac_done failed: %s", error_to_string(rv));
132 7 21 if (ix == 3) {
134 0 7 if (rv != CRYPT_OK) croak("FATAL: base64url_encode failed: %s", error_to_string(rv));
137 7 14 else if (ix == 2) {
139 0 7 if (rv != CRYPT_OK) croak("FATAL: base64_encode failed: %s", error_to_string(rv));
142 7 7 else if (ix == 1) {
144 0 7 if (rv != CRYPT_OK) croak("FATAL: base16_encode failed: %s", error_to_string(rv));