Branch Coverage

blib/lib/DateTime/SpanSet.pm
Criterion Covered Total %
branch 87 158 55.0


line true false branch
29 0 0 if UNIVERSAL::can($span, 'union')
39 0 1 unless ref $callback eq 'CODE'
57 0 0 unless ref $callback eq 'CODE'
64 0 0 if $result and $_
79 0 0 if ref $tmp{'a'}
80 0 0 if ref $tmp{'b'}
85 0 0 if (ref $min)
90 0 0 if (ref $max)
128 0 3 if UNIVERSAL::can($set, 'as_set')
130 0 3 unless (UNIVERSAL::can($set, 'union'))
156 0 13 if UNIVERSAL::can($start_set, 'as_set')
158 0 13 if UNIVERSAL::can($end_set, 'as_set')
161 0 13 unless (UNIVERSAL::can($start_set, 'union'))
163 0 13 unless (UNIVERSAL::can($end_set, 'union'))
174 5 3 if (exists $_[0]{'set'}{'method'} and $_[0]{'set'}{'method'} eq 'until')
185 5 2 if (exists $_[0]{'set'}{'method'} and $_[0]{'set'}{'method'} eq 'until')
219 1 11 if %args
221 4 8 if $span
232 3 45 unless ref $self->{'set'}
234 6 39 if (@_)
237 1 5 if UNIVERSAL::can($_[0], 'union')
238 5 1 unless defined $max
240 0 6 if not ref $max and $max == 9**9**9
246 0 6 unless defined $return
247 5 1 unless $return->intersects($max)
254 0 39 unless ref $head
266 2 15 unless ref $self->{'set'}
268 3 12 if (@_)
271 1 2 if UNIVERSAL::can($_[0], 'union')
272 2 1 unless defined $min
274 0 3 if not ref $min and $min == 9**9**9
280 0 3 unless defined $return
281 1 2 unless $return->intersects($min)
288 0 12 unless ref $head
304 0 4 if UNIVERSAL::can($_[0], 'union')
305 4 0 unless defined $min
306 0 4 if not ref $min and $min == 9**9**9
314 0 4 unless defined $next
316 4 0 defined $previous ? :
322 2 2 unless defined $return->max
325 4 0 if defined $return
336 2 1 if defined $dt2
339 0 3 unless defined $dt1
340 1 2 unless defined $dt2
342 2 0 unless UNIVERSAL::can($dt, 'union')
345 0 2 if $dt1->contains($dt)
348 1 1 if $dt2->min - $delta >= $dt->max
355 0 1 unless ref $self->{'set'}
360 0 1 if %args
363 0 1 if $span
366 0 1 if $set->{'set'}->is_too_complex
376 3 0 if ref $dt
389 0 22 if $set2->can('as_spanset')
391 0 22 if $set2->can('as_set')
393 0 22 unless $set2->can('union')
403 0 5 if $set2->can('as_spanset')
405 0 5 if $set2->can('as_set')
407 5 0 unless $set2->can('union')
416 1 0 unless ($set2->can('union'))
420 0 1 if $set1->contains($_)
426 0 0 if $set2->can('as_spanset')
428 0 0 if $set2->can('as_set')
430 0 0 unless $set2->can('union')
438 4 2 unless ($set2->can('union'))
440 4 0 if (exists $set1->{'set'}{'method'} and $set1->{'set'}{'method'} eq 'until')
451 0 4 unless defined $start and defined $end
453 3 1 if $start < $end
463 0 2 if $set2->can('as_spanset')
465 0 2 if $set2->can('as_set')
467 0 2 unless $set2->can('union')
476 0 4 if $set2->can('as_spanset')
478 0 4 if $set2->can('as_set')
480 2 2 unless $set2->can('union')
490 0 0 if (defined $set2) { }
491 0 0 if $set2->can('as_spanset')
493 0 0 if $set2->can('as_set')
495 0 0 unless $set2->can('union')
529 1 2 if $_[0]{'set'}->is_empty
537 0 2 if defined $dur and ref $dur