blib/lib/oEdtk/lib/db_Schema_init.pl untested

filter: Statementstmt 0.0% 0 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl
2 use strict;
3 use warnings;
4  
5 use oEdtk::Config qw(config_read);
6 use oEdtk::DBAdmin qw(db_connect schema_Create);
7  
8 my $cfg = config_read('EDTK_DB');
9 my $dbh = db_connect( $cfg, 'EDTK_DBI_DSN' );
10  
11 if ( $ARGV[0] =~ /-h/i ) {
12 die "Usage: $0 \n\n\tThis create edtk database schema.\n";
13 }
14 schema_Create($dbh);