Condition Coverage

lib/Net/API/CPAN/Filter.pm
Criterion Covered Total %
condition 3 51 5.8


and 2 conditions

line l !l condition
288 4 1 not exists $self->{'_reset'} && defined $self->{'_reset'} && length $self->{'_reset'} and scalar @_

and 3 conditions

line !l l&&!r l&&r condition
74 0 0 0 $self->{'_data_cache'} and not length $self->{'_reset'}
77 0 0 0 defined $es and $es->length
106 0 0 0 exists $data->{'filter'} and exists $data->{'filter'}{'terms'}
0 0 0 exists $data->{'filter'} and exists $data->{'filter'}{'terms'} and ref $data->{'filter'}{'terms'} eq "HASH"
140 0 0 0 exists $opts->{'encoding'} and defined $opts->{'encoding'}
0 0 0 exists $opts->{'encoding'} and defined $opts->{'encoding'} and lc $opts->{'encoding'} eq 'utf-8' || lc $opts->{'encoding'} eq 'utf8'
243 0 0 0 !ref($val) || $self->_can_overload($val, '""') and "$val" =~ /[\w\*]/
288 0 0 4 exists $self->{'_reset'} && defined $self->{'_reset'} && length $self->{'_reset'}
308 0 0 0 ref $_[0] and $self->_can_overload($_[0], "\"\"")

or 2 conditions

line l !l condition
219 0 0 &$build($sub_def) || (return $self->pass_error)
263 0 0 &$build($this) || (return $self->pass_error)

or 3 conditions

line l !l&&r !l&&!r condition
63 0 0 0 ref $self || $self
140 0 0 0 lc $opts->{'encoding'} eq 'utf-8' || lc $opts->{'encoding'} eq 'utf8'
224 0 0 0 $equi->{$op} // $op
243 0 0 0 !ref($val) || $self->_can_overload($val, '""')
308 0 0 0 $self->_is_array($_[0]) or not ref $_[0]
0 0 0 $self->_is_array($_[0]) or not ref $_[0] or ref $_[0] and $self->_can_overload($_[0], "\"\"")