Branch Coverage

blib/lib/Mail/Box/Search.pm
Criterion Covered Total %
branch 57 80 71.2


line true false branch
27 5 0 $in eq 'MESSAGE' ? :
2 5 $in eq 'HEAD' ? :
5 7 $in eq 'BODY' ? :
34 0 12 if $self->{'MBS_check_head'} and not $self->can('inHead')
37 0 12 if $self->{'MBS_check_body'} and not $self->can('inBody')
45 0 0 $deliver eq 'DELETE' ? :
1 0 !defined($deliver) ? :
11 1 ref $deliver eq 'CODE' ? :
56 0 12 defined $args->{'delayed'} ? :
58 1 11 defined $args->{'multiparts'} ? :
73 2 0 $object->isa('Mail::Box::Thread::Node') ? :
1 2 $object->isa('Mail::Message') ? :
10 3 $object->isa('Mail::Box') ? :
1 13 ref $object eq 'ARRAY' ? :
80 1 13 if ($limit < 0) { }
0 13 elsif ($limit > 0) { }
1 12 elsif (not defined $label || wantarray || $self->{'MBS_deliver'}) { }
89 33 343 if $self->{'MBS_no_deleted'} and $message->isDeleted
90 0 343 unless $self->{'MBS_delayed'} or not $message->isDelayed
92 0 343 defined $label ? :
97 0 343 $self->{'MBS_negative'} ? :
0 343 !$set && $logic eq 'AND' ? :
0 343 $set && $logic eq 'OR' ? :
100 0 343 if defined $label
101 167 176 if ($selected)
104 2 165 if $take and $count == $take
108 1 13 $limit < 0 ? :
120 231 145 if $self->{'MBS_check_head'}
122 41 335 unless $self->{'MBS_check_body'}
123 0 335 if $matched and not $self->{'MBS_deliver'}
130 25 310 if ($body->isMultipart) { }
0 310 elsif ($body->isNested) { }
131 1 24 unless $self->{'MBS_multiparts'}
136 0 33 unless defined $piece
137 0 33 if $no_delayed and $piece->isDelayed
140 0 33 if $matched and not $self->{'MBS_deliver'}
144 0 0 unless $self->{'MBS_multiparts'}
154 33 325 unless defined $_
155 23 302 if not $self->{'MBS_binaries'} and $_->isBinary
156 302 0 $self->{'MBS_decode'} ? :