Branch Coverage

blib/lib/omnitool/installer.pm
Criterion Covered Total %
branch 0 68 0.0


line true false branch
75 0 0 if ($options->{'help'})
85 0 0 if ($options->{'config-file'} and -e $options->{'config-file'})
89 0 0 if $options->{$name}
96 0 0 if $option_key =~ /config-file/u
99 0 0 unless ($options->{$option_key})
101 0 0 if ($options_map->{$option_key}[1]) { }
108 0 0 if ($option_key =~ /password/iu) { }
115 0 0 unless length $options->{$option_key}
118 0 0 if (not length $options->{$option_key} and $options_map->{$option_key}[0] =~ /must be provided/u || $option_key eq 'source_git_repo') { }
0 0 elsif (length $options->{$option_key} < 10 and $options_map->{$option_key}[0] =~ /longer than 10 characters/u) { }
135 0 0 if ($self->{'options'}{'save-config-file'} or $self->{'options'}{'save-config-file-only'})
161 0 0 if (not -d $self->{'options'}{'othome'}) { }
171 0 0 if (not -d $the_sub_directory) { }
183 0 0 if (-d $distribution_directory . '/omnitool') { }
196 0 0 if (not -l $htdocs_link) { }
208 0 0 if (not -l $omnitool_pm_link) { }
224 0 0 if (not -l $ot_code_link) { }
245 0 0 if ($ENV{'USER'} ne $self->{'options'}{'os-username'})
329 0 0 unless $config_filename and -e $self->{'options'}{'othome'} . '/distribution/configs/' . $config_filename
338 0 0 if (-e $destination_file)
363 0 0 if ($config_filename eq 'start_omnitool.bash.tt')
389 0 0 unless $sth->execute
391 0 0 if ($exists) { }
395 0 0 unless $sth->execute
405 0 0 if ($safe_to_modify->{'omnitool'}) { }
409 0 0 unless $sth->execute($self->{'options'}{'admin-ui-password'})
416 0 0 unless $sth->execute('Admin for ' . ucfirst($self->{'options'}{'ot-cookie-domain'}), 'apps-admin.' . $self->{'options'}{'ot-cookie-domain'})
420 0 0 unless $sth->execute('sample-apps-admin.' . $self->{'options'}{'ot-cookie-domain'})
432 0 0 if ($safe_to_modify->{$db_name}) { }
434 0 0 unless $sth->execute($self->{'options'}{'database-server'})
453 0 0 if $option_key =~ /config-file/u
461 0 0 if ($self->{'options'}{'save-config-file'}) { }
0 0 elsif ($self->{'options'}{'save-config-file-only'}) { }
508 0 0 if ($self->{'options_map'}{$option_key}[1]) { }