4 |
|
|
5 |
my $debug = shift @ARGV; |
my $debug = shift @ARGV; |
6 |
|
|
7 |
use Test::More tests => 17; |
use Test::More tests => 18; |
8 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
9 |
use Cwd qw/abs_path/; |
use Cwd qw/abs_path/; |
10 |
use lib 'lib'; |
use lib 'lib'; |
11 |
|
|
12 |
BEGIN { |
BEGIN { |
13 |
use_ok('CWMP::Store'); |
use_ok('CWMP::Store'); |
14 |
|
use_ok('CWMP::Store::DBMDeep'); |
15 |
} |
} |
16 |
|
|
17 |
ok(my $abs_path = abs_path($0), "abs_path"); |
ok(my $abs_path = abs_path($0), "abs_path"); |
23 |
|
|
24 |
ok( my $store = CWMP::Store->new({ |
ok( my $store = CWMP::Store->new({ |
25 |
debug => $debug, |
debug => $debug, |
26 |
|
module => 'DBMDeep', |
27 |
path => $path, |
path => $path, |
28 |
}), 'new' ); |
}), 'new' ); |
29 |
isa_ok( $store, 'CWMP::Store' ); |
isa_ok( $store, 'CWMP::Store' ); |