Branch Coverage

blib/lib/WordPress/Grep.pm
Criterion Covered Total %
branch 0 54 0.0


line true false branch
129 0 0 unless defined $args{$required}
143 0 0 unless defined $db
224 0 0 if defined $args{'sql_like'}
230 0 0 if (defined $self->_args->{'regex'})
237 0 0 unless $posts->{$post_id}{'post_title'} =~ /$re/u or $posts->{$post_id}{'post_content'} =~ /$re/u
243 0 0 if (defined $args{'code'})
246 0 0 unless $args{'code'}->($posts->{$post_id})
255 0 0 exists $_[0]{'query'} ? :
262 0 0 if defined $self->_args->{'sql_like'}
267 0 0 exists $_[0]{'bind_params'} ? :
269 0 0 unless ref $_[1] eq ref []
274 0 0 exists $_[0]{'args'} ? :
276 0 0 unless ref $_[1] eq ref {}
290 0 0 if (exists $self->_args->{'regex'})
292 0 0 unless ref $self->_args->{'regex'} eq ref qr//u
295 0 0 if (exists $self->_args->{'code'})
297 0 0 unless ref $self->_args->{'code'} eq ref sub { }
302 0 0 unless exists $self->_args->{$array_arg}
304 0 0 unless ref $self->_args->{$array_arg} eq ref []
321 0 0 unless defined $sth
330 0 0 if ($self->_include_terms)
344 0 0 if 0 == keys %tags and 0 == keys %categories
355 0 0 if ($self->_args->{'tags_and'}) { }
367 0 0 if ($self->_args->{'categories_and'}) { }
371 0 0 if ($found) { }
387 0 0 unless $_[0]->_args->{'categories'}
415 0 0 unless defined $sth