Branch Coverage

blib/lib/Data/ICal/DateTime.pm
Criterion Covered Total %
branch 66 86 76.7


line true false branch
118 5 8 unless $set
122 6 2 unless defined $period
148 0 55 unless defined $uid
150 1 54 if ($_->recurrence_id) { }
160 3 1 unless $_->start == $e->recurrence_id
187 540 1257 if ($new)
221 609 1023 if ($new)
224 14 595 if ($all_day)
229 14 595 if $all_day
238 284 1180 if $all_day
259 213 1995 unless ($dtend)
260 212 1 unless $new
268 41 1955 if (defined $new and $new != $cur)
270 39 2 if ($new == 0) { }
303 28 6 defined $end ? :
304 4 30 if (defined $new and $new != $cur)
306 2 2 if ($new) { }
336 0 394 if ($new)
362 0 392 if ($new)
450 784 0 unless $self->property($name)
468 0 786 if (@_)
486 769 17 unless $self->property($name)
512 0 451 if ($new)
539 55 450 if ($uid)
563 0 294 if ($summ)
587 0 0 if ($desc)
649 16 248 if (not $e{'recur'} and $e{'span'}->intersects($span))
658 12 252 if ($e{'recur'} and $e{'recur'}->intersects($span))
667 1 39 if $e{'exrule'} and $e{'exrule'}->contains($dt)
668 0 39 if $e{'exdate'} and $e{'exdate'}->contains($dt)
673 38 1 if (defined $e{'duration'})
683 264 0 unless defined $period
698 523 2 if @_
713 0 24 if $event->floating
727 7 484 if $dt >= $event->end
783 0 392 if (defined $e{'period'})
784 0 0 if (defined $e{'start'} or defined $e{'end'})
795 0 392 unless (defined $e{'start'})
799 0 392 if (defined $e{'end'} and defined $e{'duration'})
809 154 238 if (defined $e{'duration'})
813 0 392 if ($e{'rdate'})
814 0 0 defined $e{'recur'} ? :
820 390 2 if $e{'end'}