Branch Coverage

T5.xs
Criterion Covered Total %
branch 46 76 60.5


line true false branch
18 30 34 while ( (entry = hv_iternext(tidy_options)) != NULL ) {
24 0 30 if (!opt) {
31 11 19 const char * const data = SvPV(sv_data,data_len);
33 0 30 if ( ! tidyOptSetValue(tdoc,id,data) ) {
56 21 0 rc = ( tidyOptSetValue( tdoc, TidyCharEncoding, "utf8" ) ? rc : -1 );
58 21 0 if ( (rc >= 0 ) && configfile && *configfile ) {
21 0 if ( (rc >= 0 ) && configfile && *configfile ) {
1 20 if ( (rc >= 0 ) && configfile && *configfile ) {
62 21 0 if ( rc >= 0 ) {
66 21 0 if ( rc >= 0 ) {
71 21 0 if ( rc >= 0 ) {
76 21 0 if ( rc >= 0 && errbuf.bp) {
19 2 if ( rc >= 0 && errbuf.bp) {
77 0 19 XPUSHs( sv_2mortal(newSVpvn((char *)errbuf.bp, errbuf.size)) );
91 0 19 XPUSHs( sv_2mortal(newSVpv(newline, 0)) );
97 19 2 if ( errbuf.bp )
101 2 19 if ( rc < 0 ) {
123 13 0 rc = ( tidyOptSetInt( tdoc, TidyWrapLen, 0 ) ? rc : -1 );
125 13 0 if ( (rc >= 0 ) && configfile && *configfile ) {
13 0 if ( (rc >= 0 ) && configfile && *configfile ) {
2 11 if ( (rc >= 0 ) && configfile && *configfile ) {
131 13 0 if ( rc >= 0 ) {
132 13 0 rc = ( tidyOptSetValue( tdoc, TidyCharEncoding, "utf8" ) ? rc : -1 );
135 13 0 if ( rc >= 0 ) {
139 13 0 if ( rc >= 0 ) {
143 13 0 if ( rc >= 0 ) {
147 13 0 if ( rc >= 0 ) {
151 2 11 if ( rc > 1 ) {
152 2 0 rc = ( tidyOptSetBool( tdoc, TidyForceOutput, yes ) ? rc : -1 );
155 13 0 if ( rc >= 0) {
159 13 0 if ( rc >= 0) {
163 13 0 if ( rc >= 0 && output.bp && errbuf.bp ) {
13 0 if ( rc >= 0 && output.bp && errbuf.bp ) {
13 0 if ( rc >= 0 && output.bp && errbuf.bp ) {
164 0 13 XPUSHs( sv_2mortal(newSVpvn((char *)output.bp, output.size)) );
165 0 13 XPUSHs( sv_2mortal(newSVpvn((char *)errbuf.bp, errbuf.size)) );
179 0 13 XPUSHs( sv_2mortal(newSVpv(newline, 0)) );
189 0 13 if ( rc < 0 ) {