Branch Coverage

blib/lib/Module/Build/DB.pm
Criterion Covered Total %
branch 4 58 6.9


line true false branch
223 0 0 unless $self->context eq 'test'
255 0 0 unless -d 'sql'
260 0 0 unless my $fh = 'IO::File'->new("> $file")
287 0 0 unless my $replace = $self->replace_config
293 0 0 unless -e $blib
302 0 0 unless ref $replace eq 'Regexp'
305 0 0 unless open my $orig, '<', $blib
306 0 0 unless open my $temp, '>', $new
315 0 0 unless rename $new, $blib
316 0 0 $self->is_executable($blib) ? :
365 0 0 $self->drop_db ? :
369 0 0 if ($db_exists)
371 0 0 if ($self->drop_db) { }
373 0 0 unless $self->do_system($$self{'driver'}->get_drop_db_command($cmd, $db))
385 0 0 unless $self->do_system($$self{'driver'}->get_create_db_command($cmd, $db))
407 1 1 if $$self{'cx_config'}
429 1 1 if @_
449 0 0 if $$self{'db_cmd'} and $$self{'db_name'}
456 0 0 unless eval "require $driver"
460 0 0 unless $self->db_client
493 0 0 unless $quiet
495 0 0 unless $self->do_system($driver->get_execute_command($cmd, $db, $driver->get_meta_table_sql($self->meta_table)))
500 0 0 unless $self->do_system($driver->get_execute_command($cmd, $db, "\n INSERT INTO $table VALUES ( 'schema_version', 0, '' );\n "))
503 0 0 unless $quiet
540 0 0 unless $new_version > $curr_version
543 0 0 unless $self->do_system($driver->get_file_command($cmd, $db, $sql))
544 0 0 unless $quiet
545 0 0 unless $self->do_system($driver->get_execute_command($cmd, $db, "\n UPDATE $table\n SET value = $new_version\n WHERE label = 'schema_version'\n "))
550 0 0 unless $quiet