Branch Coverage

Replace.xs
Criterion Covered Total %
branch 30 42 71.4


line true false branch
34 8 0 if ( !map || SvTYPE(map) != SVt_RV || SvTYPE(SvRV(map)) != SVt_PVAV
7 1 if ( !map || SvTYPE(map) != SVt_RV || SvTYPE(SvRV(map)) != SVt_PVAV
7 0 if ( !map || SvTYPE(map) != SVt_RV || SvTYPE(SvRV(map)) != SVt_PVAV
0 7 if ( !map || SvTYPE(map) != SVt_RV || SvTYPE(SvRV(map)) != SVt_PVAV
35 0 0 || AvFILL( SvRV(map) ) <= 0
1 6 || AvFILL( SvRV(map) ) <= 0
44 360 6 for ( i = 0; i < len; ++i, ++ptr, ++ix_newstr ) {
47 128 232 if ( ix < 0 ) ix = 256 + ix;
51 0 360 if ( ix >= AvFILL(mapav) || !AvARRAY(mapav)[ix] ) {
359 1 if ( ix >= AvFILL(mapav) || !AvARRAY(mapav)[ix] ) {
0 359 if ( ix >= AvFILL(mapav) || !AvARRAY(mapav)[ix] ) {
55 359 0 if ( SvPOK( entry ) ) {
57 0 359 if ( slen <= 0 ) {
64 4 355 if (str_size <= (ix_newstr + slen + 1) ) { /* +1 for \0 */
68 2 2 if ( str == buffer ) {
70 0 2 Newx(str, str_size, char*);
75 0 2 if ( !tmp ) Perl_croak(aTHX_ "failed to realloc string" );
81 121 359 for ( ; j < slen - 1; ++j ) {
95 2 4 if ( str != buffer ) free(str);
108 11 0 if ( str && SvPOK(str) ) {
8 3 if ( str && SvPOK(str) ) {