Branch Coverage

blib/lib/DateTime/Span.pm
Criterion Covered Total %
branch 41 76 53.9


line true false branch
25 2 0 if ref $tmp{'a'}
26 2 0 if ref $tmp{'b'}
59 0 115 unless keys %args
62 0 52 if (exists $args{'start'} and exists $args{'after'})
65 0 37 if (exists $args{'end'} and exists $args{'before'})
71 52 63 if exists $args{'start'}
72 26 89 if exists $args{'after'}
74 37 78 if exists $args{'end'}
75 28 87 if exists $args{'before'}
77 0 115 if ($start > $end)
81 105 10 if ($start != $end)
83 26 79 if $open_start
85 18 87 if $open_end
101 3 9 if (exists $args{$_})
109 0 3 if (exists $args{'duration'}) { }
118 2 1 if ($dt_duration->is_positive) { }
119 1 1 if ($key eq 'end' or $key eq 'before') { }
129 1 0 if ($key eq 'end' or $key eq 'before') { }
154 0 43 unless /^(?:before|after|start|end)$/
178 0 3 if $set2->can('as_spanset')
180 0 3 if $set2->can('as_set')
182 0 3 unless $set2->can('union')
195 0 9 if $set2->can('as_spanset')
197 0 9 if $set2->can('as_set')
199 9 0 unless $set2->can('union')
207 0 1 if $set2->can('as_spanset')
209 0 1 if $set2->can('as_set')
211 1 0 unless $set2->can('union')
220 0 5 if $set2->can('as_spanset')
222 0 5 if $set2->can('as_set')
224 0 5 unless $set2->can('union')
243 0 0 if (defined $set2) { }
244 0 0 if $set2->can('as_spanset')
246 0 0 if $set2->can('as_set')
248 0 0 unless $set2->can('union')
285 0 0 $_[0]->start_is_open ? :
293 0 0 $_[0]->end_is_open ? :
308 0 0 if defined $dur