Branch Coverage

blib/lib/iCal/Parser.pm
Criterion Covered Total %
branch 67 80 83.7


line true false branch
39 27 4 unless ref $start
41 1 30 unless ref $end
44 31 0 unless ref $$self{'tz'}
53 2 32 ref $file ? :
83 2 29 ref $file ? :
90 0 10 if $$self{'no_todos'}
101 0 90 if $$self{'no_events'}
109 4 86 if $start > $$self{'span'}->end
111 0 86 if $$self{'debug'}
115 34 52 if _param($event, 'DTSTART', 'VALUE') or !1
120 56 30 $end ? :
121 1 1 $e{'allday'} ? :
123 52 34 unless $e{'allday'}
127 11 75 if (my $rid = $e{'RECURRENCE-ID'})
128 0 11 if $start < $$self{'span'}->start
132 20 55 if (my $recur = delete $e{'RRULE'}) { }
43 12 elsif ($end) { }
140 8 35 if (not $e{'allday'} and $end->day > $start->day)
144 5 30 if ($diff->delta_days > 1)
161 2 65 if defined $set->count and $set->count == 0
163 4 61 if (my $dates = delete $e{'EXDATE'})
175 65 0 if $$self{'span'}
181 84 131 if $$new_event{'VALARM'}
194 20 1 ref $a{'TRIGGER'} eq 'DateTime::Duration' ? :
218 87 47 unless $$event{'objects'}
221 121 0 if $self->can($t)
235 7 825 unless $value
237 21 804 if ($type eq 'TRIGGER')
239 20 1 if $value =~ /^[-+]?P/
242 25 779 if ($TYPES{'hash'}{$type})
247 28 751 if $TYPES{'durations'}{$type}
248 464 287 unless $TYPES{'dates'}{$type}
251 2 285 if $value =~ /^-/
263 286 0 unless $@
264 0 0 if $@ and $type ne 'DTEND'
274 822 0 wantarray ? :
287 2 820 unless defined $a[0]
288 16 804 $TYPES{'arrays'}{$_} ? :
340 2 0 if ($d >= $min and $d <= $max)
349 18 0 if $$_{'DTSTART'} >= $start