Branch Coverage

blib/lib/Remind/Parser.pm
Criterion Covered Total %
branch 30 88 34.0


line true false branch
32 0 1 scalar @_ > 1 ? :
33 0 0 scalar @_ > 1 ? :
34 0 14 scalar @_ > 1 ? :
35 0 1 scalar @_ > 1 ? :
49 0 1 unless defined $start
50 0 1 unless ($start =~ /^# rem2ps begin$/)
51 0 0 if $self->strict
56 0 33 if ($all_done)
57 0 0 if (not $_ =~ /^# rem2ps begin$/) { }
58 0 0 if $self->strict
64 14 19 if (/^# fileinfo (\d+) (.+)/) { }
15 4 elsif ($past_header) { }
71 1 14 if (/^# rem2ps end$/) { }
76 0 14 unless (defined $loc)
81 0 14 if ($self->strip_times and $description =~ s/^((\d\d?):(\d\d)([ap]m) )//)
85 0 0 unless $offset == _HMpm2min($H, $M, $pm)
90 5 9 $tag eq '*' ? :
14 0 $special eq '*' ? :
104 7 7 if ($offset eq '*') { }
113 2 5 if ($duration ne '*')
130 0 1 if $$self{'days'}
136 0 1 if (exists $args{'fill_gaps'}) { }
0 1 elsif ($self->fill_gaps) { }
137 0 0 if $args{'fill_gaps'}
142 0 1 if (defined $begin_date)
144 0 0 if $_ lt $begin_date
148 0 1 if (defined $end_date)
150 0 0 if $_ gt $end_date
159 0 0 $pm ? :
160 0 0 if $H == 12
196 0 0 unless (exists $$date_info{$dt})
221 0 0 _is_leap_year($y) ? :
0 0 $m == 2 ? :
232 7 13 if ($$r{'all_day'}) { }
244 0 0 unless $dt =~ m[^(\d\d\d\d)[-/]?(\d\d)[-/]?(\d\d)]
255 6 7 unless defined $H
262 0 0 if ($d < 28 or $d != _last_day_in_month($y, $m)) { }
0 0 elsif ($m == 12) { }
283 0 0 if ($d > 1) { }
0 0 elsif ($m == 1) { }
299 0 0 if $dt1 > $dtn
305 0 0 if $dt gt $dtn
306 0 0 if ($d > $dlim)
309 0 0 if ($m > 12)