Branch Coverage

blib/lib/Mail/Box/Search.pm
Criterion Covered Total %
branch 54 76 71.0


line true false branch
31 5 0 $in eq 'MESSAGE' ? :
2 5 $in eq 'HEAD' ? :
5 7 $in eq 'BODY' ? :
37 0 12 unless not $self->{'MBS_check_head'} or $self->can("inHead")
38 0 12 unless not $self->{'MBS_check_body'} or $self->can("inBody")
45 0 0 $deliver eq 'DELETE' ? :
1 0 !defined($deliver) ? :
11 1 ref $deliver eq 'CODE' ? :
56 0 12 exists $args->{'delayed'} ? :
57 1 11 exists $args->{'multiparts'} ? :
78 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' ? :
85 1 13 if ($limit < 0) { }
0 13 elsif ($limit > 0) { }
1 12 elsif (not defined $label || wantarray || $self->deliver) { }
94 33 343 if $self->skipDeleted and $message->isDeleted
95 0 343 unless $self->parseDelayed or not $message->isDelayed
97 0 343 defined $label ? :
102 0 343 $self->{'MBS_negative'} ? :
0 343 !$set && $logic eq 'AND' ? :
0 343 $set && $logic eq 'OR' ? :
105 0 343 if defined $label
106 167 176 if ($selected)
109 2 165 if $take and $count == $take
113 1 13 $limit < 0 ? :
123 231 145 if $self->{'MBS_check_head'}
125 41 335 unless $self->{'MBS_check_body'}
126 0 335 if $matched and not $self->deliver
133 25 310 if ($body->isMultipart) { }
0 310 elsif ($body->isNested) { }
134 1 24 unless $self->doMultiparts
139 0 33 if $piece->isDelayed and not $self->parseDelayed
142 0 33 if $matched and not $self->deliver
146 0 0 unless $self->doMultiparts
156 23 326 if not $self->{'MBS_binaries'} and $_->isBinary
157 326 0 $self->{'MBS_decode'} ? :