⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testlib.t

📁 source of perl for linux application,
💻 T
字号:
#!/usr/bin/perl -TwBEGIN {    if( $ENV{PERL_CORE} ) {        chdir 't' if -d 't';        @INC = '../lib';    }    else {        # ./lib is there so t/lib can be seen even after we chdir.        unshift @INC, 't/lib', './lib';    }}chdir 't';use Test::More tests => 5;BEGIN {     # non-core tests will have blib in their path.  We remove it    # and just use the one in lib/.    unless( $ENV{PERL_CORE} ) {        @INC = grep !/blib/, @INC;        unshift @INC, '../lib';    }}my @blib_paths = grep /blib/, @INC;is( @blib_paths, 0, 'No blib dirs yet in @INC' );use_ok( 'ExtUtils::testlib' );@blib_paths = grep { /blib/ } @INC;is( @blib_paths, 2, 'ExtUtils::testlib added two @INC dirs!' );ok( !(grep !File::Spec->file_name_is_absolute($_), @blib_paths),                    '  and theyre absolute');eval { eval "# @INC"; };is( $@, '',     '@INC is not tainted' );

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -