Branch Coverage

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


line true false branch
127 0 0 unless defined $args{$required}
141 0 0 unless defined $db
222 0 0 if defined $args{'sql_like'}
228 0 0 if (defined $self->_args->{'regex'})
235 0 0 unless $posts->{$post_id}{'post_title'} =~ /$re/u or $posts->{$post_id}{'post_content'} =~ /$re/u
241 0 0 if (defined $args{'code'})
244 0 0 unless $args{'code'}->($posts->{$post_id})
253 0 0 exists $_[0]{'query'} ? :
260 0 0 if defined $self->_args->{'sql_like'}
265 0 0 exists $_[0]{'bind_params'} ? :
267 0 0 unless ref $_[1] eq ref []
272 0 0 exists $_[0]{'args'} ? :
274 0 0 unless ref $_[1] eq ref {}
288 0 0 if (exists $self->_args->{'regex'})
290 0 0 unless ref $self->_args->{'regex'} eq ref qr//u
293 0 0 if (exists $self->_args->{'code'})
295 0 0 unless ref $self->_args->{'code'} eq ref sub { }
300 0 0 unless exists $self->_args->{$array_arg}
302 0 0 unless ref $self->_args->{$array_arg} eq ref []
319 0 0 unless defined $sth
328 0 0 if ($self->_include_terms)
342 0 0 if 0 == keys %tags and 0 == keys %categories
353 0 0 if ($self->_args->{'tags_and'}) { }
365 0 0 if ($self->_args->{'categories_and'}) { }
369 0 0 if ($found) { }
385 0 0 unless $_[0]->_args->{'categories'}
413 0 0 unless defined $sth