4
die "The PERCONA_TOOLKIT_BRANCH environment variable is not set.\n"
5
unless $ENV{PERCONA_TOOLKIT_BRANCH} && -d $ENV{PERCONA_TOOLKIT_BRANCH};
6
unshift @INC, "$ENV{PERCONA_TOOLKIT_BRANCH}/lib";
10
use warnings FATAL => 'all';
11
use English qw(-no_match_vars);
12
use Test::More tests => 6;
21
is($m->{Active}, 0, 'Empty is not active');
22
is($m->fetchrow_hashref(), undef, 'Cannot fetch from empty');
27
ok($m->{Active}, 'Has rows, is active');
28
is_deeply($m->fetchrow_hashref(), { a => 1 }, 'Got the row');
29
is($m->{Active}, '', 'Not active after fetching');
30
is($m->fetchrow_hashref(), undef, 'Cannot fetch from empty');