Branch Coverage

blib/lib/App/Schema/Deploy.pm
Criterion Covered Total %
branch 11 22 50.0


line true false branch
36 2 2 if (not &getopts("dhp:qu:v:", $self->{'_opts'}) or $self->{'_opts'}{'h'} or @ARGV < 2)
58 1 1 if ($App::Schema::Deploy::EVAL_ERROR)
67 1 0 if ($self->{'_schema_module'}->can('new')) { }
70 0 1 $self->{'_opts'}{'v'} ? :
84 0 1 if ($App::Schema::Deploy::EVAL_ERROR)
89 0 1 unless ($schema->isa("DBIx::Class::Schema"))
97 0 1 if ($self->{'_opts'}{'d'})
103 0 1 if ($App::Schema::Deploy::EVAL_ERROR)
107 0 0 if ($App::Schema::Deploy::EVAL_ERROR->{'msg'} =~ /DBI Connection failed/) { }
118 0 1 unless ($self->{'_opts'}{'q'})
120 0 0 if (defined $schema_version)