Branch Coverage

blib/lib/SWISH/API/Remote.pm
Criterion Covered Total %
branch 16 46 34.7


line true false branch
26 2 0 unless defined $opts_hash
38 0 2 if (keys %opts)
103 0 0 if (defined $query)
106 0 0 if (exists $$searchopts{'HEADERS'} and $$searchopts{'HEADERS'})
109 0 0 if (exists $$searchopts{'PROPERTIES'} and $$searchopts{'PROPERTIES'}) { }
114 0 0 if (exists $$searchopts{'BEGIN'})
117 0 0 if (exists $$searchopts{'MAX'})
132 0 0 if $$self{'debug'}
136 0 0 if $$self{'debug'}
140 0 0 if ($response->is_success) { }
142 0 0 if $$self{'debug'}
145 0 0 if $$self{'debug'}
168 1 13 unless $line
169 1 12 if ($line =~ s/^k:\s*//) { }
10 2 elsif ($line =~ s/^r:\s*//) { }
0 2 elsif ($line =~ s/^e:\s*//) { }
1 1 elsif ($line =~ s/^d:\s*//) { }
0 1 elsif ($line =~ s/^h:\s*//) { }
0 1 elsif ($line =~ s/^M:\s*//) { }
0 1 elsif ($line =~ s/^P:\s*//) { }
1 0 elsif ($line =~ s/^m:\s*.*hits=(\d+)//) { }
179 0 0 if $$self{'debug'}
183 0 1 if $$self{'debug'}