Branch Coverage

blib/lib/App/JESP.pm
Criterion Covered Total %
branch 27 32 84.3


line true false branch
71 1 3 unless (-e $file and -r $file)
116 2 1 if (my $err = $@)
117 0 2 unless ($err =~ /^CANNOT_SELECT_FROM_META\n/)
131 3 1 if ($$applied_patches{$meta_patch->{'id'}})
161 7 4 if (my $applied_patch = delete $$applied_patches{$plan_patch->id})
177 3 2 unless defined $options
184 1 4 if ($options->{'patches'})
192 0 1 unless ($patch)
204 9 4 if (my $applied_patch = $$applied_patches{$patch->id}) { }
205 4 5 unless ($options->{'force'})
215 5 4 if (my $already_applied = $db->select($self->patches_table_name, '*', {'id', $patch->id})->hash) { }
223 4 5 if ($options->{'logonly'}) { }
230 0 9 if (my $err = $@)
250 3 8 if (my $err = $@ || $result->isa('DBIx::Simple::Dummy'))
267 0 3 unless $db->dbh->do($sql)
271 0 3 if (my $err = $@)