/[cwmp]/google/t/05-store.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /google/t/05-store.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 77 - (show annotations)
Fri Jun 22 13:09:08 2007 UTC (16 years, 11 months ago) by dpavlin
File MIME type: application/x-troff
File size: 476 byte(s)
added skeleton CWMP::Store using DBM::Deep
1 #!/usr/bin/perl
2 use strict;
3 use warnings;
4
5 my $debug = shift @ARGV;
6
7 use Test::More tests => 5;
8 use Data::Dump qw/dump/;
9 use Cwd qw/abs_path/;
10 use lib 'lib';
11
12 BEGIN {
13 use_ok('CWMP::Store');
14 }
15
16 ok(my $abs_path = abs_path($0), "abs_path");
17 $abs_path =~ s!/[^/]*$!/!; #!fix-vim
18
19 my $path = "$abs_path/var/state.db";
20
21 ok( my $store = CWMP::Store->new({
22 debug => $debug,
23 path => $path,
24 }), 'new' );
25 isa_ok( $store, 'CWMP::Store' );
26
27 cmp_ok( $store->path, 'eq', $path, 'path' );

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26