3 my $THISDIR = dirname $0;
4 unshift @INC, $THISDIR;
9 my %options = map { $_ => 1 } @ARGV; ## convert cmdline to options-hash
10 my $passed = testpodchecker \%options, $0;
11 exit( ($passed == 1) ? 0 : -1 ) unless $ENV{HARNESS_ACTIVE};
13 ### Deliberately throw in some blank but non-empty lines
15 ### The above line should contain spaces
20 =head2 This should cause a warning
24 poderrors.t - test Pod::Checker on some pod syntax errors
26 =unknown1 this is an unknown command with two N<unknownA>
27 and D<unknownB> interior sequences.
29 This is some paragraph text with some unknown interior sequences,
32 and Y<unknown4 V<unknown5>>.
34 Now try some unterminated sequences like
38 Here I am at C<camp granada!
42 And they say we'll have some fun if it stops raining!
44 Okay, now use a non-empty blank line to terminate a paragraph and make
45 sure we get a warning.
47 The above blank line contains tabs and spaces only
49 =head1 Additional tests
51 =head2 item without over
55 =head2 back without over
59 =head2 over without back
65 =head2 end without begin
69 =head2 begin and begin
79 second one results in end w/o begin
81 =head2 begin w/o formatter
87 =head2 for w/o formatter
93 =head2 Nested sequences of the same type
95 C<code I<italic C<code again!>>>
97 =head2 Garbled entities
106 =head2 Unresolved internal links
112 =head2 Some links with problems
119 L<"Warnings"> this one is ok
120 L</unescaped> ok too, this POD has an X of the same name
125 L<some text with / in it|perlvar/$|> should give warnings as hell
141 X<unescaped>see these unescaped < and > in the text?
145 Z<ddd> should be empty
147 X<> should not be empty
151 This paragrapgh is misplaced - it ought to be an item.
153 =item four should be numeric!
159 =item previous is all empty!!!
187 we already have a head Misc
195 previous section is empty!
199 Due to bug reported by Rafael Garcia-Suarez "rgarciasuarez@free.fr":
201 The following hyperlinks :
203 L<perlop/"I/O Operators">
204 trigger a podchecker warning (using bleadperl) :
205 node 'I/O Operators' contains non-escaped | or /