Branch Coverage

blib/lib/Text/Cadenceparser.pm
Criterion Covered Total %
branch 79 98 80.6


line true false branch
28 3 8 if (defined $$self{'folder'}) { }
38 0 3 if (not defined $$self{'key'} or $$self{'key'} ne 'area' and $$self{'key'} ne 'active' and $$self{'key'} ne 'leakage')
53 0 8 if ($$self{'key'} eq 'area' and not defined $$self{'area_rpt'})
58 0 8 if ($$self{'key'} eq 'active' || $$self{'key'} eq 'leakage' and not defined $$self{'power_rpt'})
90 0 0 if ($$self{'_slack'}{'_negative'})
95 0 0 if $clock eq '_negative'
118 0 36 if $type ~~ ['info', 'warning', 'error']
119 34 2 if $type ~~ ['area', 'active', 'leakage']
129 0 0 if keys %{$messages;}
149 3 2 if $self->get('area')
151 4 1 if $self->get('active')
153 4 1 if $self->get('leakage')
211 0 3 unless (-e $foldername)
237 2 1 if (-e $foldername . '/final.rpt')
252 6 2 if defined $$self{'area_rpt'}
253 7 1 if defined $$self{'power_rpt'}
264 0 6 unless open my $fh, '<', $filename
274 6 84 if ($line =~ /\-{5}/u)
284 6 8490 if ($line =~ /^$regexp/u)
291 654 7842 if ($line =~ /^\s\s$regexp/u)
310 0 7 unless open my $fh, '<', $filename
324 1 74 if /Leakage\s+Internal\s+Net/u
326 6 69 if ($line =~ /\-{5}/u)
336 1 6 if $file_type eq 'verbose'
340 6 5670 if ($line =~ /^$regexp/u)
351 442 5234 if ($line =~ /^\s\s$regexp/u)
361 1 6 unless defined $$self{'_data'}{'root'}{'active'}{'total'}
374 0 6 unless open my $fh, '<', $fname
381 4 24 if /-----/u
388 20 70 if ($line =~ /^\s*(\d+)\s(\w+)\s([-\w]+)\s+(.+\S)\s+/u)
401 67 3 if ($line =~ /\s*(\S.+\S)\s+/u)
402 0 67 unless defined $type
421 0 1 unless open my $fh, '<', $fname
425 1 23 if /Slack/u
435 1 0 if ($line =~ /\w+\s+(\w+)\s+(-?\d+.?\d*)\s+(\d*)\s/u) { }
443 1 0 if ($slack < 0)
462 0 2 unless open my $fh, '<', $fname
472 2 10 if ($line =~ /Metric/u)
486 6 56 if ($line =~ /====/u) { }
2 54 elsif ($line eq "\n") { }
552 5 2 $$self{'key'} eq 'area' ? :
560 5 2 if defined $$self{'_data'}{'root'}{'area'}
561 6 1 if defined $$self{'_data'}{'root'}{'active'}
562 6 1 if defined $$self{'_data'}{'root'}{'leakage'}
565 5 2 if defined $top_area
566 6 1 if defined $top_active
567 6 1 if defined $top_leakage
577 258 300 if ($percentage >= $threshold) { }
586 17 241 if $$self{'_presentation'}{'namelength'} < $namelength