Linux server1.hosting4iran.com 4.18.0-553.89.1.el8_10.x86_64 #1 SMP Mon Dec 8 03:53:08 EST 2025 x86_64
LiteSpeed
Server IP : 185.208.174.156 & Your IP : 216.73.216.218
Domains : 282 Domain
User : satitravel
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
perl-CPAN-Meta /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
data-fail
[ DIR ]
drwxr-xr-x
2023-12-23 09:30
data-fixable
[ DIR ]
drwxr-xr-x
2023-12-23 09:30
data-test
[ DIR ]
drwxr-xr-x
2023-12-23 09:30
data-valid
[ DIR ]
drwxr-xr-x
2023-12-23 09:30
lib
[ DIR ]
drwxr-xr-x
2023-12-23 09:30
parse-cpan-meta
[ DIR ]
drwxr-xr-x
2023-12-23 09:30
00-report-prereqs.dd
7.88
KB
-rw-r--r--
2016-08-18 16:10
00-report-prereqs.t
5.46
KB
-rw-r--r--
2019-10-13 07:21
README-data.txt
622
B
-rw-r--r--
2016-08-18 16:10
converter-bad.t
2.72
KB
-rw-r--r--
2019-10-13 07:21
converter-fail.t
1.16
KB
-rw-r--r--
2019-10-13 07:21
converter-fragments.t
4
KB
-rw-r--r--
2019-10-13 07:21
converter.t
10.42
KB
-rw-r--r--
2019-10-13 07:21
load-bad.t
805
B
-rw-r--r--
2019-10-13 07:21
merge.t
5.74
KB
-rw-r--r--
2019-10-13 07:21
meta-obj.t
6.62
KB
-rw-r--r--
2019-10-13 07:21
no-index.t
1.82
KB
-rw-r--r--
2019-10-13 07:21
optional_feature-merge.t
3.2
KB
-rw-r--r--
2019-10-13 07:21
prereqs-finalize.t
2.24
KB
-rw-r--r--
2019-10-13 07:21
prereqs-merge.t
2.37
KB
-rw-r--r--
2019-10-13 07:21
prereqs.t
3.65
KB
-rw-r--r--
2019-10-13 07:21
repository.t
4.39
KB
-rw-r--r--
2019-10-13 07:21
save-load.t
3.67
KB
-rw-r--r--
2019-10-13 07:21
validator.t
1.2
KB
-rw-r--r--
2019-10-13 07:21
Save
Rename
use strict; use warnings; use Test::More 0.88; use CPAN::Meta; delete $ENV{PERL_YAML_BACKEND}; delete $ENV{PERL_JSON_BACKEND}; delete $ENV{CPAN_META_JSON_BACKEND}; delete $ENV{CPAN_META_JSON_DECODER}; my %distmeta = ( name => 'Module-Billed', abstract => 'inscrutable', version => '1', author => [ 'Joe' ], release_status => 'stable', license => [ 'perl_5' ], 'meta-spec' => { version => '2', url => 'http://search.cpan.org/perldoc?CPAN::Meta::Spec', }, dynamic_config => 1, generated_by => 'Module::Build version 0.36', ); { my $meta = CPAN::Meta->new({ %distmeta }); ok( $meta->should_index_package('Foo::Bar::Baz'), 'we index any old package, without a no_index rule' ); ok( $meta->should_index_file('lib/Foo/Bar/Baz.pm'), 'we index any old file, without a no_index rule' ); } { my $meta = CPAN::Meta->new({ %distmeta, no_index => { package => [ 'Foo::Bar' ], namespace => [ 'Foo::Bar::Baz' ], } }); ok( ! $meta->should_index_package('Foo::Bar'), 'exclude a specific package' ); ok( $meta->should_index_package('Foo::Bar::Baz'), 'namespace X does not exclude package X' ); ok( ! $meta->should_index_package('Foo::Bar::Baz::Quux'), 'exclude something under a namespace' ); } { my $meta = CPAN::Meta->new({ %distmeta, no_index => { file => [ 'lib/Foo/Bar.pm' ], directory => [ 'lib/Foo/Bar/Baz' ], } }); ok( ! $meta->should_index_file('lib/Foo/Bar.pm'), 'exclude a specific file' ); ok( $meta->should_index_file('lib/Foo/Bar/Baz.pm'), 'do not exclude a file with a name like an excluded dir', ); ok( ! $meta->should_index_file('lib/Foo/Bar/Baz/Quux.pm'), 'exclude something under a directory' ); } done_testing; # vim: ts=2 sts=2 sw=2 et :