Branch Coverage

blib/lib/Slackware/Slackget/Search.pm
Criterion Covered Total %
branch 0 40 0.0


line true false branch
47 0 0 if ref $packagelist ne 'Slackware::Slackget::PackageList'
67 0 0 if ($_->get_id =~ /\Q$string\E/i or $_->name =~ /\Q$string\E/i)
88 0 0 unless defined $_
89 0 0 if ($_->get_id eq $string)
111 0 0 unless defined $_
112 0 0 if ($_->name eq $string)
132 0 0 if ($_->get_id =~ /\Q$string\E/i or $_->description =~ /\Q$string\E/i)
163 0 0 if ($field =~ /^([^=]+)=(.+)/) { }
0 0 elsif ($_->get_id =~ /\Q$string\E/i or defined $_->getValue($field) and $_->getValue($field) =~ /\Q$string\E/i) { }
165 0 0 if (defined $_->getValue($1) and $_->getValue($1) ne $2)
207 0 0 if ($field =~ /^([^=]+)=(.+)/) { }
210 0 0 if (defined $_->getValue($1) and $_->getValue($1) ne $2) { }
0 0 elsif (defined $_->getValue($1) and $_->getValue($1) eq $2) { }
222 0 0 unless defined($field_value = $_->getValue($field))
226 0 0 unless defined $field_value and defined $complete_request
228 0 0 if (@tmp = $field_value =~ /\Q$complete_request\E/gi) { }
0 0 elsif (@tmp = $field_value =~ /\Q$string\E/gi) { }
240 0 0 if $is_result < scalar(@{$requests;}) / 2
241 0 0 if ($is_result)
243 0 0 if $is_result and $cpt