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 /
lib /
Pod /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
InputObjects.t
3.78
KB
-r--r--r--
2014-12-27 11:48
Select.t
2.06
KB
-r--r--r--
2014-12-27 11:48
Usage.t
3.14
KB
-r--r--r--
2014-12-27 11:48
utils.t
1.51
KB
-r--r--r--
2014-12-27 11:48
Save
Rename
#!perl use warnings; use strict; BEGIN { chdir 't' if -d 't'; @INC = '../lib'; }; use Test::More tests => 9; require_ok( 'Pod::Select' ); my $fake_out = tie *FAKEOUT, 'CatchOut'; my $p_s = Pod::Select->new; isa_ok( $p_s, 'Pod::Select' ); my $pod = << 'EO_NAME'; =head1 NAME Select.t - Tests for Pod::Select. EO_NAME $p_s->select( 'NAME' ); $p_s->parse_from_file( $0, \*FAKEOUT ); is( $$fake_out, $pod, 'select( NAME )' ); $pod .= << 'EO_SYNOPSIS'; =head1 SYNOPSIS This program just tests the basics of the Pod::Select module. EO_SYNOPSIS $$fake_out = ''; $p_s->select( 'NAME', 'SYNOPSIS' ); $p_s->parse_from_file( $0, \*FAKEOUT ); is( $$fake_out, $pod, 'select( NAME, SYNOPSIS )' ); $pod .= << 'EO_AUTHOR'; =head1 AUTHOR Abe Timmerman <abe@ztreet.demon.nl> EO_AUTHOR $$fake_out = ''; $p_s->add_selection( 'AUTHOR' ); $p_s->parse_from_file( $0, \*FAKEOUT ); is( $$fake_out, $pod, 'add_selection( AUTHOR )' ); my $head1 = $p_s->curr_headings(1); is( $head1, 'AUTHOR', 'curr_headings()' ); $pod = << 'EO_DESCRIPTION'; =head2 subsection a sub-section can be specified EO_DESCRIPTION $$fake_out = ''; $p_s->select( 'DESCRIPTION/subsection' ); $p_s->parse_from_file( $0, \*FAKEOUT ); is( $$fake_out, $pod, 'select( DESCRIPTION/subsection )' ); ok( $p_s->match_section( 'DESCRIPTION', 'subsection' ), 'match_section( DESCRIPTION, subsection )' ); $pod = << 'EO_DESCRIPTION'; =head1 DESCRIPTION I'll go by the POD in Pod::Select. EO_DESCRIPTION $$fake_out = ''; $p_s->select( 'DESCRIPTION/!.+' ); $p_s->parse_from_file( $0, \*FAKEOUT ); is( $$fake_out, $pod, 'select( DESCRIPTION/!.+ )' ); package CatchOut; sub TIEHANDLE { bless \( my $self ), shift } sub PRINT { my $self = shift; $$self .= $_[0] } __END__ =head1 NAME Select.t - Tests for Pod::Select. =head1 SYNOPSIS This program just tests the basics of the Pod::Select module. =head1 DESCRIPTION I'll go by the POD in Pod::Select. =head2 selection + add_selection Pull out the specified sections =head2 subsection a sub-section can be specified =head1 AUTHOR Abe Timmerman <abe@ztreet.demon.nl> =cut