Branch Coverage

blib/lib/Parse/Readelf/Debug/Line.pm
Criterion Covered Total %
branch 71 76 93.4


line true false branch
223 1 30 unless ($file_name)
225 1 29 if (ref $this)
227 1 29 unless (-f $file_name)
231 1 28 unless open READELF, '-|', $command . ' ' . $file_name
237 25 158479 if /$re_section_start/i
245 52 11010 if (/$re_dwarf_version/i)
248 2 49 unless defined $re_directory_table[$version] and defined $re_file_name_table[$version] and defined $re_file_name_table_header[$version]
254 63 10996 unless $version >= 0
256 49 10947 if (/$re_directory_table[$version]/i) { }
49 10898 elsif (/$re_file_name_table[$version]/i) { }
262 49 210 unless $_
269 1 48 unless readline(READELF) =~ /$re_file_name_table_header[$version]/i
277 48 1830 unless /\s*(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(.*)/
280 48 1782 if ($id == 1)
295 1 23 unless close READELF
334 9 1 defined $id ? :
370 8 1 defined $name ? :
418 4 18 if (not defined $table and $relax)
420 1 21 unless defined $table and ref $table eq 'ARRAY'
422 19 2 defined $name ? :
466 1 1 wantarray ? :
2 2 unless defined $table
467 1 1 if (wantarray)
510 1 5 unless defined $table and ref $table eq 'ARRAY'
512 3 2 defined $name ? :
558 1 1 wantarray ? :
2 2 unless defined $table
559 1 1 if (wantarray)
602 1 5 unless defined $table and ref $table eq 'ARRAY'
604 2 3 unless defined $name
606 0 3 unless defined $table and ref $table eq 'ARRAY'
610 0 3 unless defined $name2
658 2 2 unless (defined $dir_table and defined $file_table)
660 0 2 if defined $dir_table or defined $file_table
663 1 1 wantarray ? :
665 0 2 unless ref $dir_table eq 'ARRAY' and ref $file_table eq 'ARRAY'
671 0 2 unless $#{$dir_table;} == $#{$file_table;}
672 1 1 unless wantarray