Branch Coverage

Replace.xs
Criterion Covered Total %
branch 46 60 76.6


line true false branch
31 11 21 while ( IS_SPACE( (unsigned char) *str) ) {
2 19 while ( IS_SPACE( (unsigned char) *str) ) {
2 17 while ( IS_SPACE( (unsigned char) *str) ) {
2 15 while ( IS_SPACE( (unsigned char) *str) ) {
2 13 while ( IS_SPACE( (unsigned char) *str) ) {
37 32 0 while (end > str && isspace( (unsigned char) *end) ) {
19 13 while (end > str && isspace( (unsigned char) *end) ) {
59 10 0 if ( !map || SvTYPE(map) != SVt_RV || SvTYPE(SvRV(map)) != SVt_PVAV
9 1 if ( !map || SvTYPE(map) != SVt_RV || SvTYPE(SvRV(map)) != SVt_PVAV
9 0 if ( !map || SvTYPE(map) != SVt_RV || SvTYPE(SvRV(map)) != SVt_PVAV
0 9 if ( !map || SvTYPE(map) != SVt_RV || SvTYPE(SvRV(map)) != SVt_PVAV
60 0 0 || AvFILL( SvRV(map) ) <= 0
1 8 || AvFILL( SvRV(map) ) <= 0
69 372 8 for ( i = 0; i < len; ++i, ++ptr, ++ix_newstr ) {
72 132 240 if ( ix < 0 ) ix = 256 + ix;
76 0 372 if ( ix >= AvFILL(mapav) || !AvARRAY(mapav)[ix] ) {
371 1 if ( ix >= AvFILL(mapav) || !AvARRAY(mapav)[ix] ) {
0 371 if ( ix >= AvFILL(mapav) || !AvARRAY(mapav)[ix] ) {
80 371 0 if ( SvPOK( entry ) ) {
82 0 371 if ( slen <= 0 ) {
89 4 367 if (str_size <= (ix_newstr + slen + 1) ) { /* +1 for \0 */
93 2 2 if ( str == buffer ) {
95 0 2 Newx(str, str_size, char*);
100 0 2 if ( !tmp ) Perl_croak(aTHX_ "failed to realloc string" );
106 125 371 for ( ; j < slen - 1; ++j ) {
120 2 6 if ( str != buffer ) free(str);
132 13 0 if ( sv && SvPOK(sv) ) {
10 3 if ( sv && SvPOK(sv) ) {
144 16 0 if ( sv && SvPOK(sv) ) {
13 3 if ( sv && SvPOK(sv) ) {