Branch Coverage

regex_internal.h
Criterion Covered Total %
branch 54 340 15.8


line true false branch
1015 8 2 for (bitset_i = 0; bitset_i < SBC_MAX / BITSET_WORD_BITS; ++bitset_i)
1027 76 19 for (bitset_i = 0; bitset_i < BITSET_WORDS; ++bitset_i)
1035 8 2 for (bitset_i = 0; bitset_i < BITSET_WORDS; ++bitset_i)
1046 0 37 if (pstr->mb_cur_max == 1)
1048 104 1 for (byte_idx = 1; idx + byte_idx < pstr->valid_len; ++byte_idx)
1049 36 68 if (pstr->wcs[idx + byte_idx] != rpl__WEOF)
1058 0 38 if (pstr->mb_cur_max == 1)
1085 1560 0 rc = isASCII_LC_uvchr(c);
786 774 rc = isASCII_LC_uvchr(c);
1101 0 0 rc = isALNUM_LC_uvchr(c);
0 0 rc = isALNUM_LC_uvchr(c);
0 0 rc = isALNUM_LC_uvchr(c);
0 0 rc = isALNUM_LC_uvchr(c);
0 0 rc = isALNUM_LC_uvchr(c);
1118 38 0 rc = isALNUM_LC_uvchr(c);
38 0 rc = isALNUM_LC_uvchr(c);
0 38 rc = isALNUM_LC_uvchr(c);
15 23 rc = isALNUM_LC_uvchr(c);
0 15 rc = isALNUM_LC_uvchr(c);
1135 0 0 rc = isCNTRL_LC_uvchr(c);
0 0 rc = isCNTRL_LC_uvchr(c);
0 0 rc = isCNTRL_LC_uvchr(c);
1152 7 5 rc = isLOWER_LC_uvchr(c);
7 0 rc = isLOWER_LC_uvchr(c);
0 7 rc = isLOWER_LC_uvchr(c);
1169 0 0 rc = isSPACE_LC_uvchr(c);
0 0 rc = isSPACE_LC_uvchr(c);
0 0 rc = isSPACE_LC_uvchr(c);
0 0 rc = isSPACE_LC_uvchr(c);
0 0 rc = isSPACE_LC_uvchr(c);
0 0 rc = isSPACE_LC_uvchr(c);
0 0 rc = isSPACE_LC_uvchr(c);
0 0 rc = isSPACE_LC_uvchr(c);
0 0 rc = isSPACE_LC_uvchr(c);
0 0 rc = isSPACE_LC_uvchr(c);
0 0 rc = isSPACE_LC_uvchr(c);
0 0 rc = isSPACE_LC_uvchr(c);
0 0 rc = isSPACE_LC_uvchr(c);
0 0 rc = isSPACE_LC_uvchr(c);
0 0 rc = isSPACE_LC_uvchr(c);
0 0 rc = isSPACE_LC_uvchr(c);
1186 0 0 rc = isALPHA_LC_uvchr(c);
0 0 rc = isALPHA_LC_uvchr(c);
0 0 rc = isALPHA_LC_uvchr(c);
1203 0 0 rc = isDIGIT_LC_uvchr(c);
0 0 rc = isDIGIT_LC_uvchr(c);
0 0 rc = isDIGIT_LC_uvchr(c);
1220 0 0 rc = isPRINT_LC_uvchr(c);
0 0 rc = isPRINT_LC_uvchr(c);
0 0 rc = isPRINT_LC_uvchr(c);
1237 0 0 rc = isUPPER_LC_uvchr(c);
0 0 rc = isUPPER_LC_uvchr(c);
0 0 rc = isUPPER_LC_uvchr(c);
1254 0 0 rc = isBLANK_LC_uvchr(c);
0 0 rc = isBLANK_LC_uvchr(c);
0 0 rc = isBLANK_LC_uvchr(c);
0 0 rc = isBLANK_LC_uvchr(c);
0 0 rc = isBLANK_LC_uvchr(c);
0 0 rc = isBLANK_LC_uvchr(c);
0 0 rc = isBLANK_LC_uvchr(c);
0 0 rc = isBLANK_LC_uvchr(c);
0 0 rc = isBLANK_LC_uvchr(c);
0 0 rc = isBLANK_LC_uvchr(c);
0 0 rc = isBLANK_LC_uvchr(c);
0 0 rc = isBLANK_LC_uvchr(c);
1271 0 0 rc = isGRAPH_LC_uvchr(c);
0 0 rc = isGRAPH_LC_uvchr(c);
0 0 rc = isGRAPH_LC_uvchr(c);
1288 0 0 rc = isPUNCT_LC_uvchr(c);
0 0 rc = isPUNCT_LC_uvchr(c);
0 0 rc = isPUNCT_LC_uvchr(c);
1305 0 0 rc = isXDIGIT_LC_uvchr(c);
0 0 rc = isXDIGIT_LC_uvchr(c);
0 0 rc = isXDIGIT_LC_uvchr(c);
0 0 rc = isXDIGIT_LC_uvchr(c);
0 0 rc = isXDIGIT_LC_uvchr(c);
0 0 rc = isXDIGIT_LC_uvchr(c);
0 0 rc = isXDIGIT_LC_uvchr(c);
0 0 rc = isXDIGIT_LC_uvchr(c);
0 0 rc = isXDIGIT_LC_uvchr(c);
0 0 rc = isXDIGIT_LC_uvchr(c);
1333 0 1696 if (s == NULL) {
1343 0 1696 if (n == 0) {
1356 774 922 if (ord > 0 || *s == 0) {
0 774 if (ord > 0 || *s == 0) {
1357 922 0 if (pwc != NULL) {
1360 922 0 rc = (ord == 0) ? 0 : ch_len;
1383 0 1536 if (s == NULL) {
1387 6 1530 else if (*s == '\0') {
1388 6 0 if (pwc != NULL) {
1394 768 762 if (rc < 0) {
1409 1536 0 if (c != EOF) {
1414 768 768 if (rpl_Perl_mbtowc(aTHX_ &wc, buf, 1) >= 0) {
1429 0 0 if (wi == rpl__WEOF) {
1434 0 0 rc = isALNUM_uni((UV) wi);
0 0 rc = isALNUM_uni((UV) wi);
0 0 rc = isALNUM_uni((UV) wi);
1437 0 0 rc = isALPHA_uni((UV) wi);
0 0 rc = isALPHA_uni((UV) wi);
0 0 rc = isALPHA_uni((UV) wi);
1440 0 0 rc = isCNTRL_uni((UV) wi);
0 0 rc = isCNTRL_uni((UV) wi);
1443 0 0 rc = isDIGIT_uni((UV) wi);
0 0 rc = isDIGIT_uni((UV) wi);
0 0 rc = isDIGIT_uni((UV) wi);
1446 0 0 rc = isGRAPH_uni((UV) wi);
0 0 rc = isGRAPH_uni((UV) wi);
0 0 rc = isGRAPH_uni((UV) wi);
1449 0 0 rc = isLOWER_uni((UV) wi);
0 0 rc = isLOWER_uni((UV) wi);
0 0 rc = isLOWER_uni((UV) wi);
1452 0 0 rc = isPRINT_uni((UV) wi);
0 0 rc = isPRINT_uni((UV) wi);
0 0 rc = isPRINT_uni((UV) wi);
1455 0 0 rc = isPUNCT_uni((UV) wi);
0 0 rc = isPUNCT_uni((UV) wi);
0 0 rc = isPUNCT_uni((UV) wi);
1458 0 0 rc = isSPACE_uni((UV) wi);
0 0 rc = isSPACE_uni((UV) wi);
0 0 rc = isSPACE_uni((UV) wi);
0 0 rc = isSPACE_uni((UV) wi);
0 0 rc = isSPACE_uni((UV) wi);
0 0 rc = isSPACE_uni((UV) wi);
0 0 rc = isSPACE_uni((UV) wi);
0 0 rc = isSPACE_uni((UV) wi);
0 0 rc = isSPACE_uni((UV) wi);
0 0 rc = isSPACE_uni((UV) wi);
0 0 rc = isSPACE_uni((UV) wi);
0 0 rc = isSPACE_uni((UV) wi);
0 0 rc = isSPACE_uni((UV) wi);
0 0 rc = isSPACE_uni((UV) wi);
0 0 rc = isSPACE_uni((UV) wi);
0 0 rc = isSPACE_uni((UV) wi);
1461 0 0 rc = isUPPER_uni((UV) wi);
0 0 rc = isUPPER_uni((UV) wi);
0 0 rc = isUPPER_uni((UV) wi);
1464 0 0 rc = isXDIGIT_uni((UV) wi);
0 0 rc = isXDIGIT_uni((UV) wi);
0 0 rc = isXDIGIT_uni((UV) wi);
0 0 rc = isXDIGIT_uni((UV) wi);
0 0 rc = isXDIGIT_uni((UV) wi);
0 0 rc = isXDIGIT_uni((UV) wi);
0 0 rc = isXDIGIT_uni((UV) wi);
0 0 rc = isXDIGIT_uni((UV) wi);
0 0 rc = isXDIGIT_uni((UV) wi);
0 0 rc = isXDIGIT_uni((UV) wi);
1481 0 0 if (strncmp(property, "alnum", sizeof("alnum") - 1) == 0) {
1484 0 0 else if (strncmp(property, "alpha", sizeof("alpha") - 1) == 0) {
1487 0 0 else if (strncmp(property, "cntrl", sizeof("cntrl") - 1) == 0) {
1490 0 0 else if (strncmp(property, "digit", sizeof("digit") - 1) == 0) {
1493 0 0 else if (strncmp(property, "graph", sizeof("graph") - 1) == 0) {
1496 0 0 else if (strncmp(property, "lower", sizeof("lower") - 1) == 0) {
1499 0 0 else if (strncmp(property, "print", sizeof("print") - 1) == 0) {
1502 0 0 else if (strncmp(property, "punct", sizeof("punct") - 1) == 0) {
1505 0 0 else if (strncmp(property, "space", sizeof("space") - 1) == 0) {
1508 0 0 else if (strncmp(property, "upper", sizeof("upper") - 1) == 0) {
1511 0 0 else if (strncmp(property, "xdigit", sizeof("xdigit") - 1) == 0) {
1527 23 0 return (pstate == NULL) || (pstate[0] == 0);
23 0 return (pstate == NULL) || (pstate[0] == 0);
1536 0 5 if (s == NULL) {
1540 0 5 if (wc == 0) {
1549 5 0 if (bytes != d) {
1563 5 0 if (ps != NULL && !rpl_Perl_mbsinit ( ps))
0 5 if (ps != NULL && !rpl_Perl_mbsinit ( ps))
1569 0 5 if (s == NULL)
1576 5 0 if (ret >= 0)
1620 0 0 rc = toLOWER((U8) c);
1634 10 8 rc = toUPPER((U8) c);
1673 35 0 if (! DO_UTF8(sv)) {
0 35 if (! DO_UTF8(sv)) {