Branch Coverage

blib/lib/E2/UserSearch.pm
Criterion Covered Total %
branch 0 100 0.0


line true false branch
40 0 0 unless my $self = shift()
42 0 0 if $DEBUG > 1
51 0 0 unless my $self = shift()
57 0 0 if $DEBUG > 1
59 0 0 unless ($user)
60 0 0 if $DEBUG
67 0 0 if $startat
69 0 0 if ($sort_by) { }
71 0 0 if ($sort_by ne 'rep' and $sort_by ne 'creation' and $sort_by ne 'title')
82 0 0 if ($count and $count == -1) { }
0 0 elsif ($count) { }
93 0 0 if ($$self{'lastuser'} and $$self{'lastuser'} ne $user)
117 0 0 if (my $rep = $b->first_child('rep'))
123 0 0 if (my $lnk = $b->first_child('e2link'))
128 0 0 if (my $parent = $b->first_child('parent'))
140 0 0 if ($sort_by eq 'rep') { }
161 0 0 unless my $self = shift()
168 0 0 if $DEBUG > 1
181 0 0 unless $year1 <=> $year2 or $month1 <=> $month2 or $day1 <=> $day2 or $hour1 <=> $hour2 or $min1 <=> $min2
193 0 0 unless $year1 <=> $year2 or $month1 <=> $month2 or $day1 <=> $day2 or $hour1 <=> $hour2 or $min1 <=> $min2
215 0 0 unless ($count)
216 0 0 unless ($startat)
221 0 0 if (not defined $sortby) { }
0 0 elsif (ref $sortby eq 'CODE') { }
0 0 elsif (lc $sortby eq 'creation') { }
0 0 elsif (lc $sortby eq 'title') { }
0 0 elsif (lc $sortby eq 'rep') { }
0 0 elsif (lc $sortby eq 'cools') { }
0 0 elsif (lc $sortby eq 'creation_reverse') { }
0 0 elsif (lc $sortby eq 'title_reverse') { }
0 0 elsif (lc $sortby eq 'rep_reverse') { }
0 0 elsif (lc $sortby eq 'cools_reverse') { }
0 0 elsif (lc $sortby eq 'random') { }
230 0 0 unless sort_by_rep() or sort_by_rep_position()
232 0 0 unless sort_by_cools() or sort_by_rep()
238 0 0 unless sort_by_rep_reverse() or sort_by_rep_position_reverse()
241 0 0 unless sort_by_cools_reverse() or sort_by_rep_reverse()
253 0 0 if ($count == -1)
259 0 0 unless my $self = shift()
260 0 0 unless my $old = shift()
262 0 0 if $DEBUG > 1
264 0 0 unless ($$self{'writeups'} and $$old{'writeups'})
265 0 0 if $DEBUG
295 0 0 if (not defined $$stats{'min_rep'} or $r < $$stats{'min_rep'})
299 0 0 if (not defined $$stats{'max_rep'} or $r > $$stats{'max_rep'})
314 0 0 if (not $map{$id}) { }
331 0 0 if (wr_diff($_, $map{$id}))
343 0 0 if ($_->title ne $map{$id}->title)
352 0 0 if $changed
374 0 0 unless my $self = shift()