Branch Coverage

lib/SweetPea/Cli/Data.pm
Criterion Covered Total %
branch 0 40 0.0


line true false branch
61 0 0 if ($@) { }
71 0 0 if (-x -r -d './sweet/configuration/datastores/development' and -x -r -d './sweet/configuration/datastores/production') { }
78 0 0 if ($c->options->{'create'}) { }
0 0 elsif ($c->options->{'update'}) { }
112 0 0 if (-f "./sweet/configuration/datastores/$datastore/table/users.yml" or -f "./sweet/configuration/datastores/$datastore/table/permissions.yml") { }
123 0 0 if ($self->_check_dsn($c->argv->[0], $c->argv->[1], $c->argv->[2])) { }
239 0 0 unless my $db = 'DBI'->connect(@dsn)
240 0 0 if ($db)
247 0 0 unless $db->do($_)
278 0 0 if ($self->_check_dsn($c->argv->[0], $c->argv->[1], $c->argv->[2])) { }
286 0 0 unless my $db = 'DBI'->connect(@dsn)
298 0 0 unless $translator->translate
302 0 0 unless my(@tables) = $schema->get_tables
352 0 0 if ($name)
359 0 0 if ($field->is_nullable) { }
368 0 0 lc $field->default_value eq 'null' ? :
403 0 0 if (-e $path)
426 0 0 unless $dsn
427 0 0 $dsn =~ /^dbi\:/ && $user ? :
433 0 0 if $dsn =~ /\:/