Branch Coverage

blib/lib/CPAN/Testers/WWW/Statistics/Excel.pm
Criterion Covered Total %
branch 48 52 92.3


line true false branch
131 1 4 unless $hash{'source'}
132 1 3 unless $hash{'target'}
133 1 2 unless -f $hash{'source'}
159 192 36040 unless ($table or $hash{'title'})
160 1 191 if ($$token[0] eq 'S' and $$token[1] eq 'h2')
165 1 190 if ($$token[0] eq 'E' and $$token[1] eq 'h2')
171 1 189 if ($title and $$token[0] eq 'T')
172 0 1 if $$cell{'text'}
177 228 36002 unless $table or $$token[1] eq 'table'
179 2 36000 if ($$token[0] eq 'S' and $$token[1] eq 'table')
183 2 35998 if ($$token[0] eq 'E' and $$token[1] eq 'table')
188 129 35869 if ($$token[0] eq 'S' and $$token[1] eq 'tr')
192 129 35740 if ($$token[0] eq 'E' and $$token[1] eq 'tr')
197 1116 34624 if ($$token[0] eq 'S' and $$token[1] eq 'th')
199 550 566 if ($$token[2]{'class'})
204 1116 33508 if ($$token[0] eq 'E' and $$token[1] eq 'th')
212 9075 24433 if ($$token[0] eq 'S' and $$token[1] eq 'td')
214 9075 0 if ($$token[2]{'class'})
219 9075 15358 if ($$token[0] eq 'E' and $$token[1] eq 'td')
227 11566 3792 if ($$token[0] eq 'T')
228 1388 10178 if $$cell{'text'}
253 0 2 unless $workbook->close
262 10205 10 unless my $log = $self->logfile
263 1 9 unless -f $log
265 1 9 $self->logclean ? :
271 0 10 unless my $fh = 'IO::File'->new($log, $mode)