#!/usr/bin/perl
use warnings;
use strict;
-use Test::More 'no_plan';
+
+require './test.pl';
+
+plan('no_plan');
+
$|=1;
my $make_exceptions_list = ($ARGV[0]||'') eq '--make-exceptions-list';
if (exists $entries{$name}) {
if ($entries{$name}{todo}) {
TODO: {
- local $TODO = 'in DATA';
+ no warnings 'once';
+ local $::TODO = 'in DATA';
fail("Presence of '$name' from $codefn line $.");
}
} else {
#!/usr/bin/perl -w
-BEGIN {
- chdir 't' if -d 't';
- @INC = '../lib';
-}
+
+require './test.pl';
use strict;
require overload;
};
-use Test::More;
-
{
package My::Pod::Checker;
use strict;
$checker->parse_from_file($filename, undef);
my $error_count = $checker->num_errors();
- if(! ok $error_count <= 0, "POD of $filename") {
+ if(! ok($error_count <= 0, "POD of $filename")) {
diag( "'$filename' contains POD errors" );
- diag sprintf "%s %s: %s at line %s",
- $_->{-severity}, $_->{-file}, $_->{-msg}, $_->{-line}
+ diag(sprintf "%s %s: %s at line %s",
+ $_->{-severity}, $_->{-file}, $_->{-msg}, $_->{-line})
for @My::Pod::Checker::errors;
};
};
-plan tests => scalar @files;
+plan (tests => scalar @files);
pod_ok $_
for @files;