Branch Coverage

Param.xs
Criterion Covered Total %
branch 69 114 60.5


line true false branch
103 0 2 PUSHMARK(SP);
104 0 2 XPUSHs( sv_2mortal(newSVpv(message,0)) );
112 0 2 if ( 1 != count )
118 2 0 FREETMPS ;
140 1 79 if ( parerr )
147 2 78 if ( MY_CXT.parerr && MY_CXT.level)
2 0 if ( MY_CXT.parerr && MY_CXT.level)
152 1 1 char *error = MY_CXT.errmsg ? MY_CXT.errmsg : errstr;
159 1 1 hv_store( hash, "errmsg", 6, MY_CXT.errmsg ? newSVpv(MY_CXT.errmsg, 0) : &PL_sv_undef, 0 );
177 0 78 if ( MY_CXT.parerr )
207 0 1 if ( MY_CXT.errmsg )
223 0 1 if ( 0 == level )
277 14 0 if ( argc )
281 16 14 for ( i = 2 ; i < items ; i++ )
283 1 15 argv[i-2] = SvOK(ST(i)) ? (char*)SvPV_nolen(ST(i)) : (char*)NULL;
1 0 argv[i-2] = SvOK(ST(i)) ? (char*)SvPV_nolen(ST(i)) : (char*)NULL;
0 1 argv[i-2] = SvOK(ST(i)) ? (char*)SvPV_nolen(ST(i)) : (char*)NULL;
15 0 argv[i-2] = SvOK(ST(i)) ? (char*)SvPV_nolen(ST(i)) : (char*)NULL;
288 1 13 if ( NULL == RETVAL->pf )
315 13 0 if ( pfile->pf )
333 0 0 if ( ParamInfo( pfile->pf, name, mode, type,
336 0 0 EXTEND(SP, 6);
372 0 0 if (RETVAL) Safefree(RETVAL);
393 1 1 sv_setsv( ST(0), pgetb( pfile->pf, pname ) ? &PL_sv_yes : &PL_sv_no );
444 38 0 if ( ParamInfo( pfile->pf, pname, NULL, type, NULL, NULL, NULL, NULL ))
446 19 19 if ( 0 == strcmp( "b", type ) )
448 11 8 sv_setsv( ST(0),
456 19 19 while( len == buflen )
482 1 1 while( len == buflen )
564 18 0 if ( ParamInfo( pfile->pf, pname, NULL, type, NULL, NULL, NULL, NULL ) &&
15 3 if ( ParamInfo( pfile->pf, pname, NULL, type, NULL, NULL, NULL, NULL ) &&
565 8 7 0 == strcmp( "b", type ) &&
566 2 6 ( looks_like_number( value ) ||
571 9 0 pputb(pfile->pf, pname, SvTRUE(value) );
0 9 pputb(pfile->pf, pname, SvTRUE(value) );
0 0 pputb(pfile->pf, pname, SvTRUE(value) );
1 8 pputb(pfile->pf, pname, SvTRUE(value) );
1 0 pputb(pfile->pf, pname, SvTRUE(value) );
0 1 pputb(pfile->pf, pname, SvTRUE(value) );
2 6 pputb(pfile->pf, pname, SvTRUE(value) );
2 0 pputb(pfile->pf, pname, SvTRUE(value) );
2 0 pputb(pfile->pf, pname, SvTRUE(value) );
1 1 pputb(pfile->pf, pname, SvTRUE(value) );
1 0 pputb(pfile->pf, pname, SvTRUE(value) );
1 1 pputb(pfile->pf, pname, SvTRUE(value) );
6 0 pputb(pfile->pf, pname, SvTRUE(value) );
6 0 pputb(pfile->pf, pname, SvTRUE(value) );
3 3 pputb(pfile->pf, pname, SvTRUE(value) );
0 3 pputb(pfile->pf, pname, SvTRUE(value) );
0 0 pputb(pfile->pf, pname, SvTRUE(value) );
3 3 pputb(pfile->pf, pname, SvTRUE(value) );
0 0 pputb(pfile->pf, pname, SvTRUE(value) );
575 0 9 pputstr(pfile->pf, pname, SvOK(value) ? (char*)SvPV_nolen(value) : (char*)NULL );
0 0 pputstr(pfile->pf, pname, SvOK(value) ? (char*)SvPV_nolen(value) : (char*)NULL );
0 0 pputstr(pfile->pf, pname, SvOK(value) ? (char*)SvPV_nolen(value) : (char*)NULL );
9 0 pputstr(pfile->pf, pname, SvOK(value) ? (char*)SvPV_nolen(value) : (char*)NULL );
589 0 0 if ( RETVAL ) Safefree( RETVAL );