);
-plan tests => (1 + scalar(@handle_tests));
-
use_ok('SQL::Abstract');
for (@handle_tests) {
is_same_sql_bind($stmt, [@bind ? 1 : 0], $_->{stmt}, [1]);
}
-
+done_testing;
},
);
-
-plan tests => scalar(grep { !$_->{warning_like} } @tests) * 2
- + scalar(grep { $_->{warning_like} } @tests) * 4;
-
for my $t (@tests) {
local $"=', ';
}
}
}
+
+done_testing;
},
);
-plan tests => ( @handle_tests * 2 ) + 1;
-
for my $case (@handle_tests) {
local $Data::Dumper::Terse = 1;
my $sql = SQL::Abstract->new;
my $sql = SQL::Abstract->new;
$sql->where({ foo => { '>=' => [] }},);
};
+
+done_testing;
},
);
-
-plan tests => (@data * 5 + 2);
-
# test insert() and values() for reentrancy
my($insert_hash, $insert_array, $numfields);
my $a_sql = SQL::Abstract->new;
'values() output matches that of initial bind'
) || diag "Corresponding SQL statement: $stmt";
}
+
+done_testing;
},
);
-plan tests => @in_between_tests*4;
-
for my $case (@in_between_tests) {
TODO: {
local $TODO = $case->{todo} if $case->{todo};
}, "$case->{test} doesn't die");
}
}
+
+done_testing;
use SQL::Abstract;
use SQL::Abstract::Test import => ['is_same_sql_bind'];
-my @cases =
+my @cases =
(
{
given => \'colA DESC',
},
);
-
-plan tests => (scalar(@cases) * 2) + 2;
-
my $sql = SQL::Abstract->new;
my $sqlq = SQL::Abstract->new({quote_char => '`'});
qr/hash passed .+ must have exactly one key/,
'Undeterministic order exception',
);
+
+done_testing;
bind => [100, "foo%", 1234],
};
-
-plan tests => scalar(@tests);
-
for (@tests) {
my($stmt, @bind) = $sql->where($_->{where}, $_->{order});
is_same_sql_bind($stmt, \@bind, $_->{stmt}, $_->{bind});
}
-
-
-
-
+done_testing;
);
-
-plan tests => scalar(@tests);
-
for (@tests) {
my($stmt, @bind) = $sqlmaker->where($_->{where}, $_->{order});
is_same_sql_bind($stmt, \@bind, $_->{stmt}, $_->{bind});
}
-
-
-
-
+done_testing;
use Test::More;
use SQL::Abstract;
-plan tests => 13;
-
my $obj = bless {}, "Foo::Bar";
is(SQL::Abstract->_refkind(undef), 'UNDEF', 'UNDEF');
is(SQL::Abstract->_refkind(\$obj), 'SCALARREF', 'SCALARREF');
is(SQL::Abstract->_refkind(\\$obj), 'SCALARREFREF', 'SCALARREFREF');
+done_testing;
},
);
-plan tests => 1 +
- sum(
- map { $_ * ($_ - 1) / 2 }
- map { scalar @{$_->{statements}} }
- @sql_tests
- ) +
- sum(
- map { $_ * ($_ - 1) / 2 }
- map { scalar @{$_->{bindvals}} }
- @bind_tests
- ) +
- 9;
-
use_ok('SQL::Abstract::Test', import => [qw(
eq_sql_bind eq_sql eq_bind is_same_sql_bind
)]);
'expected debug of missing branch',
);
+done_testing;
unless ( $ENV{TEST_POD} || -e 'MANIFEST.SKIP' );
my @modules = sort { $a cmp $b } ( Test::Pod::Coverage::all_modules() );
-plan tests => scalar(@modules);
# Since this is about checking documentation, a little documentation
# of what this is doing might be in order...
pod_coverage_ok( $module, $parms, "$module POD coverage" );
}
}
+
+done_testing;