4 |
|
|
5 |
my $debug = shift @ARGV; |
my $debug = shift @ARGV; |
6 |
|
|
7 |
use Test::More tests => 255; |
use Test::More tests => 256; |
8 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
9 |
use lib 'lib'; |
use lib 'lib'; |
10 |
|
|
11 |
|
use Devel::LeakTrace::Fast; |
12 |
|
|
13 |
BEGIN { |
BEGIN { |
14 |
use_ok('CWMP::Queue'); |
use_ok('CWMP::Queue'); |
15 |
} |
} |
16 |
|
|
17 |
#use Cwd qw/abs_path/; |
use Cwd qw/abs_path/; |
18 |
#ok(my $abs_path = abs_path($0), "abs_path"); |
ok(my $abs_path = abs_path($0), "abs_path"); |
19 |
#$abs_path =~ s!/[^/]*$!/!; #!fix-vim |
$abs_path =~ s!/[^/]*$!/!; #!fix-vim |
20 |
|
|
21 |
ok( my $obj = CWMP::Queue->new({ |
ok( my $obj = CWMP::Queue->new({ |
22 |
id => 'test', |
id => 'test', |
23 |
|
dir => "$abs_path/queue", |
24 |
|
clean => 1, |
25 |
debug => $debug, |
debug => $debug, |
26 |
}), 'new' ); |
}), 'new' ); |
27 |
isa_ok( $obj, 'CWMP::Queue' ); |
isa_ok( $obj, 'CWMP::Queue' ); |