Branch Coverage

blib/lib/CMS/Drupal/Modules/MembershipEntity/Stats.pm
Criterion Covered Total %
branch 14 78 17.9


line true false branch
45 1 0 if ($self->{'_memberships'}) { }
57 1 0 if ($self->{'_memberships'}) { }
60 13 16 if $mem->is_expired
73 1 0 if ($self->{'_memberships'}) { }
76 16 13 if $mem->is_active
89 1 0 if ($self->{'_memberships'}) { }
92 0 29 if $mem->is_cancelled
105 1 0 if ($self->{'_memberships'}) { }
108 0 29 if $mem->is_pending
121 1 0 if ($self->{'_memberships'}) { }
124 2 27 if ($mem->current_was_renewal)
145 0 0 unless @dates
173 0 0 unless $datetime gt $term->{'start'} and $term->{'end'} gt $datetime
183 0 0 unless (exists $current_mids{$mid})
189 0 0 if (scalar keys %{$ordered_terms{$mid};} < 2)
205 0 0 if $term_count == 1
207 0 0 if (exists $current_tids{$ordered_terms{$mid}{$start}})
217 0 0 scalar keys %counts == 1 ? :
228 0 0 unless @dates
249 0 0 scalar keys %counts == 1 ? :
260 0 0 unless @dates
281 0 0 scalar keys %counts == 1 ? :
292 0 0 unless @dates
314 0 0 scalar keys %counts == 1 ? :
325 0 0 unless @dates
347 0 0 scalar keys %counts == 1 ? :
359 0 0 unless @dates
390 0 0 if $_ < $id
397 0 0 scalar keys %counts == 1 ? :
408 0 0 unless @dates
428 0 0 scalar keys %counts == 1 ? :
439 0 0 unless @dates
460 0 0 scalar keys %counts == 1 ? :
480 0 0 if (not $opt_start && $opt_start =~ /[0-9]{4}-[0-9]{2}-[0-9]{2}/) { }
492 0 0 if ($opt_end) { }
493 0 0 if (not $opt_end =~ /[0-9]{4}-[0-9]{2}-[0-9]{2}/) { }
530 0 0 unless ($datetime and $datetime =~ /[0-9]{4}-[0-9]{2}-[0-9]{2}/)
553 0 0 unless ($datetime and $datetime =~ /[0-9]{4}-[0-9]{2}-[0-9]{2}/)
587 0 0 if ($args{'exclude'})