Condition Coverage

blib/lib/Search/Estraier.pm
Criterion Covered Total %
condition 15 108 13.8


and 3 conditions

line !l l&&!r l&&r condition
364 1 0 11 defined $name and $$self{'attrs'}
423 3 0 1 defined $$self{'score'} and $$self{'score'} >= 0
1184 0 0 0 $$self{'url'} and $doc->isa('Search::Estraier::Document')
1263 0 0 0 $$self{'url'} and $doc->isa('Search::Estraier::Document')
1322 0 0 0 $id and $name
1339 0 0 0 $uri and $name
1422 0 0 0 $$a{'id'} || $$a{'uri'} and $$self{'url'}
1552 0 0 0 $cond and defined $depth
0 0 0 $cond and defined $depth and $$self{'url'}
1682 0 0 1 $url && $url->scheme
1728 0 0 0 $resbody and $$self{'debug'}
2009 0 0 0 $$rest{'returns'} and wantarray

or 2 conditions

line l !l condition
509 2 0 shift() || (return)
828 2 0 shift() || (return)
941 0 0 shift() || (return)
974 0 0 $$self{'hints'}{'HIT'} || 0
1183 0 0 shift() || (return)
1209 0 0 shift() || (return)
1236 0 0 shift() || (return)
1262 0 0 shift() || (return)
1288 0 0 shift() || (return)
1305 0 0 shift() || (return)
1354 0 0 shift() || (return)
1370 0 0 shift() || (return)
1387 0 0 shift() || (return)
1426 0 0 $$a{'path'} || '/get_doc'
1605 0 0 shift() || (return)

or 3 conditions

line l !l&&r !l&&!r condition
923 0 0 5 $num < 0 or $num > $$self{'docs'}
1075 0 0 0 not eval { do { $self->name } } or $@
1078 0 0 0 $$self{'label'} || $name
1422 0 0 0 $$a{'id'} || $$a{'uri'}
1682 0 0 1 not $url && $url->scheme or !$url->scheme eq 'http'
0 0 1 not $url && $url->scheme or !$url->scheme eq 'http' or not $url->host
0 0 1 not $url && $url->scheme or !$url->scheme eq 'http' or not $url->host or not $url->port
0 0 1 not $url && $url->scheme or !$url->scheme eq 'http' or not $url->host or not $url->port or $url->port < 1
1712 1 0 0 $ua->request($req) || croak("can't make request to ${url}: $!")
1898 0 0 0 $rv != 200 or not $resbody
1968 1 0 0 $$args{'action'} || croak('need action, available: ', join(', ', keys %{$estmaster_rest;}))
1979 0 0 1 $$rest{'required'} or $$rest{'optional'}
2007 0 0 0 $action eq 'sync' or $action =~ /^node(?:add|del|clr)$/
2062 0 0 0 $rv != 200 or not $resbody