Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
cpan /
Pod-Simple /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
corpus
[ DIR ]
drwxr-xr-x
2016-10-10 18:23
corpus2
[ DIR ]
drwxr-xr-x
2015-02-14 16:55
testlib1
[ DIR ]
drwxr-xr-x
2015-02-14 16:55
testlib2
[ DIR ]
drwxr-xr-x
2015-02-14 16:55
testlib3
[ DIR ]
drwxr-xr-x
2015-02-14 16:55
00about.t
3.11
KB
-r--r--r--
2014-12-27 11:48
20_skip.t
308
B
-r--r--r--
2014-12-27 11:48
ac_d.t
3.33
KB
-r--r--r--
2014-12-27 11:48
accept01.t
2.67
KB
-r--r--r--
2014-12-27 11:48
accept05.t
4.71
KB
-r--r--r--
2014-12-27 11:48
basic.t
2.38
KB
-r--r--r--
2014-12-27 11:48
begin.t
22.22
KB
-r--r--r--
2014-12-27 11:48
cbacks.t
2.27
KB
-r--r--r--
2014-12-27 11:48
chunking.t
1.17
KB
-r--r--r--
2014-12-27 11:48
closeys.t
698
B
-r--r--r--
2014-12-27 11:48
corpus.t
3.99
KB
-r--r--r--
2014-12-27 11:48
emptylists.t
1.45
KB
-r--r--r--
2014-12-27 11:48
enc-chars.t
1.16
KB
-r--r--r--
2014-12-27 11:48
encod01.t
1.65
KB
-r--r--r--
2014-12-27 11:48
encod02.t
1.25
KB
-r--r--r--
2014-12-27 11:48
encod03.t
1.22
KB
-r--r--r--
2014-12-27 11:48
encod04.t
3.18
KB
-r--r--r--
2014-12-27 11:48
end_over.t
1.24
KB
-r--r--r--
2014-12-27 11:48
eol.t
2.18
KB
-r--r--r--
2014-12-27 11:48
eol2.t
2.09
KB
-r--r--r--
2014-12-27 11:48
fake-closers.t
1.45
KB
-r--r--r--
2014-12-27 11:48
fcodes.t
4.24
KB
-r--r--r--
2014-12-27 11:48
fcodes_e.t
2.62
KB
-r--r--r--
2014-12-27 11:48
fcodes_l.t
26.34
KB
-r--r--r--
2014-12-27 11:48
fcodes_s.t
12.08
KB
-r--r--r--
2014-12-27 11:48
for.t
5.04
KB
-r--r--r--
2014-12-27 11:48
fornot.t
5.28
KB
-r--r--r--
2014-12-27 11:48
heads.t
2.58
KB
-r--r--r--
2014-12-27 11:48
html01.t
2.06
KB
-r--r--r--
2014-12-27 11:48
html02.t
806
B
-r--r--r--
2014-12-27 11:48
html03.t
714
B
-r--r--r--
2014-12-27 11:48
htmlbat.t
2.61
KB
-r--r--r--
2014-12-27 11:48
items.t
8.46
KB
-r--r--r--
2014-12-27 11:48
items02.t
1.31
KB
-r--r--r--
2014-12-27 11:48
itemstar.t
1.67
KB
-r--r--r--
2014-12-27 11:48
junk1.pod
52
B
-r--r--r--
2014-12-27 11:48
junk1o.txt
318
B
-r--r--r--
2014-12-27 11:48
junk2.pod
46
B
-r--r--r--
2014-12-27 11:48
junk2o.txt
251
B
-r--r--r--
2014-12-27 11:48
linkclas.t
1.46
KB
-r--r--r--
2014-12-27 11:48
output.t
1.08
KB
-r--r--r--
2014-12-27 11:48
perlcyg.pod
19.93
KB
-r--r--r--
2014-12-27 11:48
perlcygo.txt
18.63
KB
-r--r--r--
2014-12-27 11:48
perlfaq.pod
30.59
KB
-r--r--r--
2014-12-27 11:48
perlfaqo.txt
29.9
KB
-r--r--r--
2014-12-27 11:48
perlvar.pod
40.57
KB
-r--r--r--
2014-12-27 11:48
perlvaro.txt
38.14
KB
-r--r--r--
2014-12-27 11:48
puller.t
7.92
KB
-r--r--r--
2014-12-27 11:48
pulltitl.t
10.9
KB
-r--r--r--
2014-12-27 11:48
reinit.t
1.87
KB
-r--r--r--
2014-12-27 11:48
render.t
3.5
KB
-r--r--r--
2014-12-27 11:48
search05.t
965
B
-r--r--r--
2014-12-27 11:48
search10.t
2.31
KB
-r--r--r--
2014-12-27 11:48
search12.t
2.22
KB
-r--r--r--
2014-12-27 11:48
search20.t
2.89
KB
-r--r--r--
2014-12-27 11:48
search22.t
3.21
KB
-r--r--r--
2014-12-27 11:48
search25.t
2.76
KB
-r--r--r--
2014-12-27 11:48
search26.t
2
KB
-r--r--r--
2014-12-27 11:48
search27.t
2.71
KB
-r--r--r--
2014-12-27 11:48
search28.t
1.79
KB
-r--r--r--
2014-12-27 11:48
search29.t
1.78
KB
-r--r--r--
2014-12-27 11:48
search50.t
2.62
KB
-r--r--r--
2014-12-27 11:48
stree.t
3.15
KB
-r--r--r--
2014-12-27 11:48
strpvbtm.t
4.22
KB
-r--r--r--
2014-12-27 11:48
tiedfh.t
1.22
KB
-r--r--r--
2014-12-27 11:48
verb_fmt.t
12.95
KB
-r--r--r--
2014-12-27 11:48
verbatim.t
7.65
KB
-r--r--r--
2014-12-27 11:48
whine.t
1.46
KB
-r--r--r--
2014-12-27 11:48
x_nixer.t
4.67
KB
-r--r--r--
2014-12-27 11:48
xhtml-bkb.t
421
B
-r--r--r--
2014-12-27 11:48
xhtml01.t
15.47
KB
-r--r--r--
2014-12-27 11:48
xhtml05.t
1.17
KB
-r--r--r--
2014-12-27 11:48
xhtml10.t
12.36
KB
-r--r--r--
2014-12-27 11:48
xhtml15.t
966
B
-r--r--r--
2014-12-27 11:48
xhtml20.t
1.18
KB
-r--r--r--
2014-12-27 11:48
Save
Rename
BEGIN { if($ENV{PERL_CORE}) { chdir 't'; @INC = '../lib'; } } use strict; use Test; BEGIN { plan tests => 136 }; #use Pod::Simple::Debug (5); #sub Pod::Simple::MANY_LINES () {1} #sub Pod::Simple::PullParser::DEBUG () {1} use Pod::Simple::PullParser; sub pump_it_up { my $p = Pod::Simple::PullParser->new; $p->set_source( \( $_[0] ) ); my(@t, $t); while($t = $p->get_token) { push @t, $t } print "# Count of tokens: ", scalar(@t), "\n"; print "# I.e., {", join("\n# + ", map ref($_) . ": " . $_->dump, @t), "} \n"; return @t; } my @t; #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @t = pump_it_up(qq{\n\nProk\n\n=head1 Things\n\n=cut\n\nBzorch\n\n}); if(not( ok scalar( grep { ref $_ and $_->can('type') } @t), 5 )) { ok 0,1, "Wrong token count. Failing subsequent tests.\n"; for ( 1 .. 12 ) {ok 0} } else { ok $t[0]->type, 'start'; ok $t[1]->type, 'start'; ok $t[2]->type, 'text'; ok $t[3]->type, 'end'; ok $t[4]->type, 'end'; ok $t[0]->tagname, 'Document'; ok $t[1]->tagname, 'head1'; ok $t[2]->text, 'Things'; ok $t[3]->tagname, 'head1'; ok $t[4]->tagname, 'Document'; ok $t[0]->attr('start_line'), '5'; ok $t[1]->attr('start_line'), '5'; } #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @t = pump_it_up( qq{Woowoo\n\n=over\n\n=item *\n\nStuff L<HTML::TokeParser>\n\n} . qq{=item *\n\nThings I<like that>\n\n=back\n\n=cut\n\n} ); if( not( ok scalar( grep { ref $_ and $_->can('type') } @t) => 16 ) ) { ok 0,1, "Wrong token count. Failing subsequent tests.\n"; for ( 1 .. 32 ) {ok 0} } else { ok $t[ 0]->type, 'start'; ok $t[ 1]->type, 'start'; ok $t[ 2]->type, 'start'; ok $t[ 3]->type, 'text'; ok $t[ 4]->type, 'start'; ok $t[ 5]->type, 'text'; ok $t[ 6]->type, 'end'; ok $t[ 7]->type, 'end'; ok $t[ 8]->type, 'start'; ok $t[ 9]->type, 'text'; ok $t[10]->type, 'start'; ok $t[11]->type, 'text'; ok $t[12]->type, 'end'; ok $t[13]->type, 'end'; ok $t[14]->type, 'end'; ok $t[15]->type, 'end'; ok $t[ 0]->tagname, 'Document'; ok $t[ 1]->tagname, 'over-bullet'; ok $t[ 2]->tagname, 'item-bullet'; ok $t[ 3]->text, 'Stuff '; ok $t[ 4]->tagname, 'L'; ok $t[ 5]->text, 'HTML::TokeParser'; ok $t[ 6]->tagname, 'L'; ok $t[ 7]->tagname, 'item-bullet'; ok $t[ 8]->tagname, 'item-bullet'; ok $t[ 9]->text, 'Things '; ok $t[10]->tagname, 'I'; ok $t[11]->text, 'like that'; ok $t[12]->tagname, 'I'; ok $t[13]->tagname, 'item-bullet'; ok $t[14]->tagname, 'over-bullet'; ok $t[15]->tagname, 'Document'; ok $t[4]->attr("type"), "pod"; } #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { print "# Testing unget_token\n"; my $p = Pod::Simple::PullParser->new; $p->set_source( \qq{\nBzorch\n\n=pod\n\nLala\n\n\=cut\n} ); ok 1; my $t; $t = $p->get_token; ok $t && $t->type, 'start'; ok $t && $t->tagname, 'Document'; print "# ungetting ($t).\n"; $p->unget_token($t); ok 1; $t = $p->get_token; ok $t && $t->type, 'start'; ok $t && $t->tagname, 'Document'; my @to_save = ($t); $t = $p->get_token; ok $t && $t->type, 'start'; ok $t && $t->tagname, 'Para'; push @to_save, $t; print "# ungetting (@to_save).\n"; $p->unget_token(@to_save); splice @to_save; $t = $p->get_token; ok $t && $t->type, 'start'; ok $t && $t->tagname, 'Document'; $t = $p->get_token; ok $t && $t->type, 'start'; ok $t && $t->tagname, 'Para'; ok 1; } #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { print "# Testing pullparsing from an arrayref\n"; my $p = Pod::Simple::PullParser->new; ok 1; $p->set_source( ['','Bzorch', '','=pod', '', 'Lala', 'zaza', '', '=cut'] ); ok 1; my( @t, $t ); while($t = $p->get_token) { print "# Got a token: ", $t->dump, "\n#\n"; push @t, $t; } ok scalar(@t), 5; # count of tokens ok $t[0]->type, 'start'; ok $t[1]->type, 'start'; ok $t[2]->type, 'text'; ok $t[3]->type, 'end'; ok $t[4]->type, 'end'; ok $t[0]->tagname, 'Document'; ok $t[1]->tagname, 'Para'; ok $t[2]->text, 'Lala zaza'; ok $t[3]->tagname, 'Para'; ok $t[4]->tagname, 'Document'; } #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ { print "# Testing pullparsing from an arrayref with terminal newlines\n"; my $p = Pod::Simple::PullParser->new; ok 1; $p->set_source( [ map "$_\n", '','Bzorch', '','=pod', '', 'Lala', 'zaza', '', '=cut'] ); ok 1; my( @t, $t ); while($t = $p->get_token) { print "# Got a token: ", $t->dump, "\n#\n"; push @t, $t; } ok scalar(@t), 5; # count of tokens ok $t[0]->type, 'start'; ok $t[1]->type, 'start'; ok $t[2]->type, 'text'; ok $t[3]->type, 'end'; ok $t[4]->type, 'end'; ok $t[0]->tagname, 'Document'; ok $t[1]->tagname, 'Para'; ok $t[2]->text, 'Lala zaza'; ok $t[3]->tagname, 'Para'; ok $t[4]->tagname, 'Document'; } #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ END { unlink "temp.pod" } { print "# Testing pullparsing from a file\n"; my $p = Pod::Simple::PullParser->new; ok 1; open(OUT, ">temp.pod") || die "Can't write-open temp.pod: $!"; print OUT map "$_\n", '','Bzorch', '','=pod', '', 'Lala', 'zaza', '', '=cut' ; close(OUT); ok 1; sleep 1; $p->set_source("temp.pod"); my( @t, $t ); while($t = $p->get_token) { print "# Got a token: ", $t->dump, "\n#\n"; push @t, $t; print "# That's token number ", scalar(@t), "\n"; } ok scalar(@t), 5; # count of tokens ok $t[0]->type, 'start'; ok $t[1]->type, 'start'; ok $t[2]->type, 'text'; ok $t[3]->type, 'end'; ok $t[4]->type, 'end'; ok $t[0]->tagname, 'Document'; ok $t[1]->tagname, 'Para'; ok $t[2]->text, 'Lala zaza'; ok $t[3]->tagname, 'Para'; ok $t[4]->tagname, 'Document'; } # ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ { print "# Testing pullparsing from a glob\n"; my $p = Pod::Simple::PullParser->new; ok 1; open(IN, "<temp.pod") || die "Can't read-open temp.pod: $!"; $p->set_source(*IN); my( @t, $t ); while($t = $p->get_token) { print "# Got a token: ", $t->dump, "\n#\n"; push @t, $t; print "# That's token number ", scalar(@t), "\n"; } ok scalar(@t), 5; # count of tokens ok $t[0]->type, 'start'; ok $t[1]->type, 'start'; ok $t[2]->type, 'text'; ok $t[3]->type, 'end'; ok $t[4]->type, 'end'; ok $t[0]->tagname, 'Document'; ok $t[1]->tagname, 'Para'; ok $t[2]->text, 'Lala zaza'; ok $t[3]->tagname, 'Para'; ok $t[4]->tagname, 'Document'; close(IN); } # ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ { print "# Testing pullparsing from a globref\n"; my $p = Pod::Simple::PullParser->new; ok 1; open(IN, "<temp.pod") || die "Can't read-open temp.pod: $!"; $p->set_source(\*IN); my( @t, $t ); while($t = $p->get_token) { print "# Got a token: ", $t->dump, "\n#\n"; push @t, $t; print "# That's token number ", scalar(@t), "\n"; } ok scalar(@t), 5; # count of tokens ok $t[0]->type, 'start'; ok $t[1]->type, 'start'; ok $t[2]->type, 'text'; ok $t[3]->type, 'end'; ok $t[4]->type, 'end'; ok $t[0]->tagname, 'Document'; ok $t[1]->tagname, 'Para'; ok $t[2]->text, 'Lala zaza'; ok $t[3]->tagname, 'Para'; ok $t[4]->tagname, 'Document'; close(IN); } # ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ { print "# Testing pullparsing from a filehandle\n"; my $p = Pod::Simple::PullParser->new; ok 1; open(IN, "<temp.pod") || die "Can't read-open temp.pod: $!"; $p->set_source(*IN{IO}); my( @t, $t ); while($t = $p->get_token) { print "# Got a token: ", $t->dump, "\n#\n"; push @t, $t; print "# That's token number ", scalar(@t), "\n"; } ok scalar(@t), 5; # count of tokens ok $t[0]->type, 'start'; ok $t[1]->type, 'start'; ok $t[2]->type, 'text'; ok $t[3]->type, 'end'; ok $t[4]->type, 'end'; ok $t[0]->tagname, 'Document'; ok $t[1]->tagname, 'Para'; ok $t[2]->text, 'Lala zaza'; ok $t[3]->tagname, 'Para'; ok $t[4]->tagname, 'Document'; close(IN); } #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print "# Wrapping up... one for the road...\n"; ok 1; print "# --- Done with ", __FILE__, " --- \n"; __END__