📄 poderrs.t
字号:
BEGIN { chdir 't' if -d 't'; unshift @INC, '../lib'; unshift @INC, './pod'; require "testpchk.pl"; import TestPodChecker;}my %options = map { $_ => 1 } @ARGV; ## convert cmdline to options-hashmy $passed = testpodchecker \%options, $0;exit( ($passed == 1) ? 0 : -1 ) unless $ENV{HARNESS_ACTIVE};### Deliberately throw in some blank but non-empty lines ### The above line should contain spaces__END__=head1 NAMEpoderrors.t - test Pod::Checker on some pod syntax errors=unknown1 this is an unknown command with two N<unknownA>and D<unknownB> interior sequences.This is some paragraph text with some unknown interior sequences,such as Q<unknown2>,A<unknown3>,and Y<unknown4 V<unknown5>>.Now try some unterminated sequences likeI<hello mudda!B<hello fadda!Here I am at C<camp granada!Camps is very,entertaining.And they say we'll have some fun if it stops raining!Okay, now use a non-empty blank line to terminate a paragraph and makesure we get a warning. The above blank line contains tabs and spaces only=head1 Additional tests=head2 item without over=item oops=head2 back without over=back=head2 over without back=over 4=item aaps=head2 end without begin=end=head2 begin and begin=begin html=begin text=end=endsecond one results in end w/o begin=head2 begin w/o formatter=begin=end=head2 for w/o formatter=forsomething...=head2 Nested sequences of the same typeC<code I<italic C<code again!>>>=head2 Garbled entitiesE<alea iacta est>E<C<auml>>E<abcI<bla>>E<0x100>E<07777>E<300>=head2 Unresolved internal linksL</"begin or begin">L<"end with begin">L</OoPs>=head2 Some links with problemsL<abcdef>L<>L< aha>L<oho >L<"Warnings"> this one is okL</unescaped> ok too, this POD has an X of the same name=head2 WarningsL<passwd(5)>L<some text with / in it|perlvar/$|> should give warnings as hell=over 4=item bla=back 200the 200 is evil=begin htmlWhat?=end xmlX<unescaped>see these unescaped < and > in the text?=head2 MiscZ<ddd> should be emptyX<> should not be empty=over fourThis paragrapgh is misplaced - it ought to be an item.=item four should be numeric!=item=item blah=item previous is all empty!!!=backAll empty over/back:=over 4=backitem w/o name=cut=pod blabla is evil=cut blubblub is evil=head2 reoccurence=over 4=item Miscwe already have a head Misc=back=head2 some heading=head2 another oneprevious section is empty!=cut
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -