Branch Coverage

blib/lib/BusyBird/Util.pm
Criterion Covered Total %
branch 41 54 75.9


line true false branch
23 0 1616 if ($is_mandatory and not defined $$params_ref{$key})
27 851 765 defined $$params_ref{$key} ? :
48 0 0 if ($refparam eq 'ARRAY') { }
0 0 elsif ($refparam eq 'HASH') { }
55 0 0 wantarray ? :
74 2152 764 defined $dt ? :
79 2355 1158 if (defined $a and defined $b) { }
73 1085 elsif (not defined $a and defined $b) { }
222 863 elsif (defined $a and not defined $b) { }
105 1897 1616 if $ret != 0
124 1 31 unless (defined $text)
127 12 19 if (ref $entities_hashref ne 'HASH')
135 1 49 if ref $entities ne 'ARRAY'
140 41 2 if (defined $start and defined $end and $start <= $end)
153 30 11 if ($pos < $$entity_segment{'start'})
161 11 8 if ($pos < length $text)
172 1 295 unless defined $invocant
173 1 294 unless defined $method
174 1 293 unless blessed $invocant
175 1 292 unless $invocant->can($method)
179 6 281 if ($error) { }
191 0 2 unless (blessed $tracking_timeline and $tracking_timeline->isa('BusyBird::Timeline'))
194 0 2 unless (blessed $main_timeline and $main_timeline->isa('BusyBird::Timeline'))
199 0 2 if ($name_tracking eq $name_main)
205 0 5 unless (defined $track)
211 0 5 if (defined $error)
218 0 5 if (defined $error)