Branch Coverage

blib/lib/Metabrik/Server/Elasticsearch.pm
Criterion Covered Total %
branch 0 46 0.0


line true false branch
90 0 0 unless (defined $binary)
96 0 0 unless $self->brik_help_run_file_not_found("get_binary", $binary)
120 0 0 unless my $sf = "Metabrik::System::File"->new_from_brik_init($self)
121 0 0 unless $sf->mkdir($db_dir)
122 0 0 unless $sf->mkdir($log_dir)
144 0 0 unless my $ft = "Metabrik::File::Text"->new_from_brik_init($self)
148 0 0 unless $ft->write($conf, $conf_file)
160 0 0 if ($version eq '2.4.1') { }
0 0 elsif ($version eq '5.0.0') { }
169 0 0 unless my $cw = "Metabrik::Client::Www"->new_from_brik_init($self)
170 0 0 unless $cw->mirror($url, "$datadir/es.tar.gz")
174 0 0 if (defined $self->shell) { }
175 0 0 unless $self->shell->run_cd($datadir)
178 0 0 unless chdir $datadir
182 0 0 unless my $r = $self->execute($cmd)
184 0 0 if (defined $self->shell) { }
185 0 0 unless $self->shell->run_cd($cwd)
188 0 0 unless chdir $cwd
197 0 0 if ($self->status)
202 0 0 unless $self->brik_help_run_file_not_found("start", $conf_file)
206 0 0 unless my $binary = $self->get_binary
232 0 0 unless ($self->status)
246 0 0 if ($self->is_running_from_pidfile($pidfile))