20 |
|
|
21 |
diag "NULL DB"; |
diag "NULL DB"; |
22 |
|
|
23 |
ok($db = new WebPAC::DB( debug => $debug ), "new"); |
ok($db = new WebPAC::DB( debug => $debug, no_log => 1, ), "new"); |
24 |
|
|
25 |
ok(! $db->path, "path"); |
ok(! $db->path, "path"); |
26 |
|
|
36 |
|
|
37 |
diag "DB path: $path"; |
diag "DB path: $path"; |
38 |
|
|
39 |
ok($db = new WebPAC::DB( path => $path, debug => $debug ), "new"); |
ok($db = new WebPAC::DB( path => $path, debug => $debug, no_log => 1 ), "new"); |
40 |
|
|
41 |
cmp_ok($db->{'path'}, 'eq', $path, "path"); |
cmp_ok($db->{'path'}, 'eq', $path, "path"); |
42 |
|
|