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-Bzip2 /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
compress
[ DIR ]
drwxr-xr-x
2015-02-14 16:55
000prereq.t
958
B
-r--r--r--
2014-12-27 11:49
01bzip2.t
12.36
KB
-r--r--r--
2014-12-27 11:48
09limitoutput.t
3.45
KB
-r--r--r--
2014-12-27 11:48
19nonpv.t
2.18
KB
-r--r--r--
2014-12-27 11:48
99pod.t
261
B
-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 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 => 21 + $extra ; use_ok('Compress::Raw::Bzip2', 2) ; } my $hello = <<EOM ; hello world this is a test EOM my $len = length $hello ; { title "bzdeflate/bzinflate - non-PV buffers"; # ============================== my $hello = *hello; $hello = *hello; my ($err, $x, $X, $status); ok( ($x, $err) = new Compress::Raw::Bzip2(0), "Create bzdeflate object" ); ok $x, "Compress::Raw::Bzip2 ok" ; cmp_ok $err, '==', BZ_OK, "status is BZ_OK" ; is $x->uncompressedBytes(), 0, "uncompressedBytes() == 0" ; is $x->compressedBytes(), 0, "compressedBytes() == 0" ; my $Answer = *Answer; $Answer = *Answer; $status = $x->bzdeflate($hello, $Answer) ; cmp_ok $status, '==', BZ_RUN_OK, "bzdeflate returned BZ_RUN_OK" ; $X = *X; cmp_ok $x->bzflush($X), '==', BZ_RUN_OK, "bzflush returned BZ_RUN_OK" ; $Answer .= $X ; is $x->uncompressedBytes(), length $hello, "uncompressedBytes ok" ; is $x->compressedBytes(), length $Answer, "compressedBytes ok" ; $X = *X; cmp_ok $x->bzclose($X), '==', BZ_STREAM_END, "bzclose returned BZ_STREAM_END"; $Answer .= $X ; my @Answer = split('', $Answer) ; my $k; ok(($k, $err) = new Compress::Raw::Bunzip2(0, 0)); ok $k, "Compress::Raw::Bunzip2 ok" ; cmp_ok $err, '==', BZ_OK, "status is BZ_OK" ; is $k->compressedBytes(), 0, "compressedBytes() == 0" ; is $k->uncompressedBytes(), 0, "uncompressedBytes() == 0" ; my $GOT = *GOT; $GOT = *GOT; my $Z; $status = $k->bzinflate($Answer, $GOT) ; cmp_ok $status, '==', BZ_STREAM_END, "Got BZ_STREAM_END" ; is $GOT, $hello, "uncompressed data matches ok" ; is $k->compressedBytes(), length $Answer, "compressedBytes ok" ; is $k->uncompressedBytes(), length $hello , "uncompressedBytes ok"; }