Branch Coverage

blib/lib/Search/ESsearcher.pm
Criterion Covered Total %
branch 0 146 0.0


line true false branch
78 0 0 if (-d '/usr/local/etc/essearch/') { }
0 0 elsif (-d '/etc/essearch/') { }
0 0 elsif ($0 =~ m[bin/essearcher$]) { }
114 0 0 unless ($self->errorblank)
139 0 0 unless ($self->errorblank)
143 0 0 unless ($self->name_validate($name))
150 0 0 unless (defined $name)
171 0 0 unless ($self->errorblank)
179 0 0 if (defined $ENV{'HOME'} and -f $ENV{'HOME'} . '/.config/essearcher/help/' . $self->{'search'}) { }
0 0 elsif (defined $self->{'base'} and -f $self->{'base'} . '/etc/essearcher/help/' . $self->{'search'}) { }
192 0 0 if ($self->name_validate($self->{'search'}))
198 0 0 unless (defined $data)
206 0 0 unless (defined $data)
208 0 0 unless (open $fh, "<", $file)
216 0 0 unless (read $fh, $data, 200000000)
240 0 0 unless ($self->errorblank)
265 0 0 unless ($self->errorblank)
273 0 0 if (defined $ENV{'HOME'} and -f $ENV{'HOME'} . '/.config/essearcher/options/' . $self->{'options'}) { }
0 0 elsif (defined $self->{'base'} and -f $self->{'base'} . '/etc/essearcher/options/' . $self->{'options'}) { }
286 0 0 if ($self->name_validate($self->{'options'}))
292 0 0 unless (defined $data)
300 0 0 if (defined $file)
302 0 0 unless (open $fh, "<", $file)
310 0 0 unless (read $fh, $data, 200000000)
342 0 0 unless ($self->errorblank)
349 0 0 if (defined $ENV{'HOME'} and -f $ENV{'HOME'} . '/.config/essearcher/elastic/' . $self->{'elastic'}) { }
0 0 elsif (defined $self->{'base'} and -f $self->{'base'} . '/etc/essearcher/elastic/' . $self->{'elastic'}) { }
367 0 0 if (defined $file)
369 0 0 unless (open $fh, "<", $file)
378 0 0 unless (read $fh, $data, 200000000)
390 0 0 if ($@)
402 0 0 if ($@)
426 0 0 unless ($self->errorblank)
434 0 0 if (defined $ENV{'HOME'} and -f $ENV{'HOME'} . '/.config/essearcher/output/' . $self->{'output'}) { }
0 0 elsif (defined $self->{'base'} and -f $self->{'base'} . '/etc/essearcher/output/' . $self->{'output'}) { }
447 0 0 if ($self->name_validate($self->{'options'}))
453 0 0 unless (defined $data)
461 0 0 unless (defined $data)
463 0 0 unless (open $fh, "<", $file)
471 0 0 unless (read $fh, $data, 200000000)
500 0 0 unless ($self->errorblank)
508 0 0 if (defined $ENV{'HOME'} and -f $ENV{'HOME'} . '/.config/essearcher/search/' . $self->{'search'}) { }
0 0 elsif (defined $self->{'base'} and -f $self->{'base'} . '/etc/essearcher/search/' . $self->{'search'}) { }
521 0 0 if ($self->name_validate($self->{'options'}))
527 0 0 unless (defined $data)
535 0 0 unless (defined $data)
537 0 0 unless (open $fh, "<", $file)
545 0 0 unless (read $fh, $data, 200000000)
579 0 0 unless ($self->errorblank)
583 0 0 unless (defined $name)
589 0 0 unless ($name =~ /^$/)
608 0 0 unless ($self->errorblank)
630 0 0 unless ($self->errorblank)
634 0 0 unless ($self->name_validate($name))
641 0 0 unless (defined $name)
663 0 0 unless ($self->errorblank)
686 0 0 unless ($self->errorblank)
690 0 0 unless ($self->name_validate($name))
697 0 0 unless (defined $name)
726 0 0 unless ($self->errorblank)
731 0 0 if (ref $results ne "HASH" or not defined $results->{'hits'} or not defined $results->{'hits'}{'hits'})
750 0 0 if ($_[0] =~ /^raw\:/)
799 0 0 unless ($self->errorblank)
820 0 0 unless ($self->errorblank)
840 0 0 if ($_[0] =~ /^u\:/) { }
0 0 elsif ($_[0] =~ /^\-/) { }
871 0 0 if ($@)
897 0 0 unless ($self->errorblank)
907 0 0 if (ref $results eq "HASH" or defined $results->{'hits'} or defined $results->{'hits'}{'hits'})
913 0 0 unless (defined $item->{'_source'}{'timestamp'})
937 0 0 unless ($self->errorblank)
941 0 0 unless ($self->name_validate($name))
948 0 0 unless (defined $name)