Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 18.223.239.65
202 Domain
8.1.31
nbspublicschool
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-2.120921 /
t /
[ HOME SHELL ]
Name
Size
Permission
Action
data
[ DIR ]
drwxr-xr-x
data-bad
[ DIR ]
drwxr-xr-x
data-fail
[ DIR ]
drwxr-xr-x
00-compile.t
1.57
KB
-rw-r--r--
converter-bad.t
2.63
KB
-rw-r--r--
converter-fail.t
1.09
KB
-rw-r--r--
converter.t
8.02
KB
-rw-r--r--
load-bad.t
789
B
-rw-r--r--
meta-obj.t
5.7
KB
-rw-r--r--
no-index.t
1.72
KB
-rw-r--r--
prereqs-finalize.t
2.17
KB
-rw-r--r--
prereqs-merge.t
1.94
KB
-rw-r--r--
prereqs.t
2.55
KB
-rw-r--r--
repository.t
4.3
KB
-rw-r--r--
save-load.t
2.85
KB
-rw-r--r--
strings.t
2.26
KB
-rw-r--r--
validator.t
940
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : prereqs-finalize.t
use strict; use warnings; use Test::More 0.88; use CPAN::Meta::Prereqs; delete $ENV{$_} for qw/PERL_JSON_BACKEND PERL_YAML_BACKEND/; # use defaults sub dies_ok (&@) { my ($code, $qr, $comment) = @_; my $lived = eval { $code->(); 1 }; if ($lived) { fail("$comment: did not die"); } else { like($@, $qr, $comment); } } my $prereqs_struct = { runtime => { requires => { 'Config' => '1.234', 'Cwd' => '876.5', 'IO::File' => 0, 'perl' => '5.005_03', }, recommends => { 'Pod::Text' => 0, 'YAML' => '0.35', }, }, build => { requires => { 'Test' => 0, }, } }; my $prereqs = CPAN::Meta::Prereqs->new($prereqs_struct); isa_ok($prereqs, 'CPAN::Meta::Prereqs'); $prereqs->finalize; ok($prereqs->is_finalized, 'cloned obj is not finalized'); is_deeply($prereqs->as_string_hash, $prereqs_struct, '...and still round-trip'); $prereqs->requirements_for(qw(runtime requires))->add_minimum(Cwd => 10); pass('...we can add a minimum if it has no effect'); dies_ok { $prereqs->requirements_for(qw(runtime requires))->add_minimum(Cwd => 1000) } qr{finalized req}, '...but we die if it would alter a finalized prereqs'; $prereqs->requirements_for(qw(develop suggests)); pass('...we can get a V:R object for a previously unconfigured phase'); dies_ok { $prereqs->requirements_for(qw(develop suggests))->add_minimum(Foo => 1) } qr{finalized req}, '...but we die if we try to put anything in it'; my $clone = $prereqs->clone; isa_ok($clone, 'CPAN::Meta::Prereqs', 'cloned prereqs obj'); ok(! $clone->is_finalized, 'cloned obj is not finalized'); is_deeply($clone->as_string_hash, $prereqs_struct, '...it still round-trips'); $clone->requirements_for(qw(runtime requires))->add_minimum(Cwd => 10); pass('...we can add minimum if it has no effect'); $clone->requirements_for(qw(runtime requires))->add_minimum(Cwd => 1000); pass('...or if it has an effect'); $clone->requirements_for(qw(develop suggests)); pass('...we can get a V:R object for a previously unconfigured phase'); $clone->requirements_for(qw(develop suggests))->add_minimum(Foo => 1); pass('...and we can add stuff to it'); done_testing;
Close