join ", ", @errors;
plan skip_all => $msg;
}
- elsif ($ntests and $ntests ne 'no_plan') {
+ return unless defined $ntests;
+
+ if ($ntests ne 'no_plan') {
plan tests => $ntests;
}
else {
If one of C<SQL::Translator::Parser::MySQL>'s dependencies does not exist,
then the test will be skipped.
+Instead of a number of tests, you can pass C<undef> if you're using
+C<done_testing()>, or C<'no_plan'> if you don't want a plan at all.
+
=head1 EXPORTS
table_ok, field_ok, constraint_ok, index_ok, view_ok, trigger_ok, procedure_ok,
=back
-=head1 BUGS
-
=head1 AUTHOR
Mark D. Addison E<lt>mark.addison@itn.co.ukE<gt>,