1 package t
::TestCommandParser
;
3 # This file is part of the breadcrumbs daemon (bcd).
4 # Copyright (C) 2007 Pasqualino Ferrentino
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 # Contact: lino.ferrentino@yahoo.it (in Italian, English or German).
30 our @ISA = qw(t::TestCommonDb);
32 use Bcd
::Commands
::CommandParser
;
35 my $self = shift()->SUPER::new
(@_);
42 my $stash = $self->{stash
};
45 __recordsets
=> ['testrs'],
62 #ok, I try to parse this output
63 my $res = Bcd
::Commands
::CommandParser
->parse_command_output($output);
65 $self->assert_equals('r1f1', $res->{testrs
}->[0]->{field1
});
66 $self->assert_equals('r2f1', $res->{testrs
}->[1]->{field1
});
67 $self->assert_null($res->{__recordsets
});