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 /
Compress-Raw-Zlib /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
compress
[ DIR ]
drwxr-xr-x
2015-02-14 16:55
01version.t
1013
B
-r--r--r--
2014-12-27 11:48
02zlib.t
27.22
KB
-r--r--r--
2014-12-27 11:48
07bufsize.t
2.63
KB
-r--r--r--
2014-12-27 11:49
09limitoutput.t
4.24
KB
-r--r--r--
2014-12-27 11:48
18lvalue.t
1.5
KB
-r--r--r--
2014-12-27 11:48
19nonpv.t
3.28
KB
-r--r--r--
2014-12-27 11:48
Save
Rename
BEGIN { if ($ENV{PERL_CORE}) { chdir 't' if -d 't'; @INC = ("../lib", "lib/compress"); } } use lib qw(t t/compress); use strict; use warnings; use bytes; use Test::More ; use CompTestUtils; BEGIN { # use Test::NoWarnings, if available my $extra = 0 ; $extra = 1 if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 }; plan tests => 288 + $extra ; use_ok('Compress::Raw::Zlib', 2) ; } my $hello = <<EOM ; hello world this is a test EOM my $len = length $hello ; # Check zlib_version and ZLIB_VERSION are the same. SKIP: { skip "TEST_SKIP_VERSION_CHECK is set", 1 if $ENV{TEST_SKIP_VERSION_CHECK}; is Compress::Raw::Zlib::zlib_version, ZLIB_VERSION, "ZLIB_VERSION matches Compress::Raw::Zlib::zlib_version" ; } for my $i (1 .. 13) { print "#\n#Length $i\n#\n"; my $hello = "I am a HAL 9000 computer" x 2001; my $tmp = $hello ; my @hello = (); push @hello, $1 while $tmp =~ s/^(.{$i})//; push @hello, $tmp if length $tmp ; my ($err, $x, $X, $status); ok( ($x, $err) = new Compress::Raw::Zlib::Deflate (-AppendOutput => 1)); ok $x ; cmp_ok $err, '==', Z_OK, " status is Z_OK" ; ok ! defined $x->msg(), " no msg" ; is $x->total_in(), 0, " total_in == 0" ; is $x->total_out(), 0, " total_out == 0" ; my $out ; foreach (@hello) { $status = $x->deflate($_, $out) ; last unless $status == Z_OK ; } cmp_ok $status, '==', Z_OK, " status is Z_OK" ; cmp_ok $x->flush($out), '==', Z_OK, " flush returned Z_OK" ; ok ! defined $x->msg(), " no msg" ; is $x->total_in(), length $hello, " length total_in" ; is $x->total_out(), length $out, " length total_out" ; my @Answer = (); $tmp = $out; push @Answer, $1 while $tmp =~ s/^(.{$i})//; push @Answer, $tmp if length $tmp ; my $k; ok(($k, $err) = new Compress::Raw::Zlib::Inflate( -AppendOutput => 1)); ok $k ; cmp_ok $err, '==', Z_OK, " status is Z_OK" ; ok ! defined $k->msg(), " no msg" ; is $k->total_in(), 0, " total_in == 0" ; is $k->total_out(), 0, " total_out == 0" ; my $GOT = ''; my $Z; $Z = 1 ;#x 2000 ; foreach (@Answer) { $status = $k->inflate($_, $GOT) ; last if $status == Z_STREAM_END or $status != Z_OK ; } cmp_ok $status, '==', Z_STREAM_END, " status is Z_STREAM_END" ; is $GOT, $hello, " got expected output" ; ok ! defined $k->msg(), " no msg" ; is $k->total_in(), length $out, " length total_in ok" ; is $k->total_out(), length $hello, " length total_out ok" ; }