Branch Coverage

lib/App/Followme/BaseData.pm
Criterion Covered Total %
branch 75 88 85.2


line true false branch
36 56 454 if (defined $sort_field)
37 20 36 if ($sort_field =~ s/_reversed$//) { }
45 273 237 if ($sigil eq '$')
46 68 205 if (defined $item and !$self->{'cache'}{'item'} || $self->{'cache'}{'item'} ne $item) { }
56 423 87 unless (exists $cache{$data_field})
68 273 237 if $sigil eq '$'
79 156 559 if (@data == 0) { }
558 1 elsif (@data == 1) { }
1 0 elsif (@data % 2 == 0) { }
113 58 114 if ($sort_reverse) { }
131 315 109 if (@keys == 1)
133 134 181 if (ref $data->{$key} eq 'ARRAY')
148 2 151 unless $self->can($formatter)
156 220 0 if (exists $data{$sort_field}) { }
174 0 30 unless $loop
178 30 30 if ($loop->[$i] eq $item)
185 6 24 if $index < 1 or $index > @$loop
186 24 6 $index ? :
196 44 804 unless $sorted_data->{$name}
199 207 597 if ($self->can($formatter))
200 0 207 if (ref $sorted_data->{$name} eq 'ARRAY') { }
0 207 elsif (ref $sorted_data->{$name} eq 'HASH') { }
236 557 155 if ($self->can($method)) { }
252 0 3 unless $loop
255 3 3 if ($loop->[$i] eq $item)
270 0 3 unless $loop
271 1 2 $loop->[0] eq $item ? :
280 0 3 unless $loop
281 1 2 $loop->[-1] eq $item ? :
290 0 1 unless $loop
351 1 2 if @merged_list == $self->{'list_length'}
352 2 0 if (&$comparer($list1->[0], $list2->[0]) > 0) { }
360 1 0 if @merged_list == $self->{'list_length'}
365 3 17 if @merged_list == $self->{'list_length'}
379 17 496 unless defined $value
381 276 237 if ($sigil eq '$') { }
47 190 elsif ($sigil eq '@') { }
190 0 elsif ($sigil eq '') { }
382 275 1 if (ref $value ne 'SCALAR') { }
396 89 101 ref $value ? :
400 0 513 unless $check
422 134 290 if ($data_field) { }
453 98 55 unless defined $sort_field
454 99 54 unless defined $sort_reverse