| Server IP : 164.138.27.172 / Your IP : 216.73.216.143 Web Server : nginx/1.27.4 System : Linux cookingdream 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : www-adm ( 1001) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /home/jonasn/.cpan/build/local-lib-2.000029-0/t/ |
Upload File : |
use strict;
use warnings;
use Test::More tests => 7;
use lib 't/lib';
use TempDir;
use File::Spec::Functions qw(catdir);
use local::lib ();
my $c = 'local::lib';
{
is $c->resolve_empty_path, '~/perl5',
'empty path resolves to ~/perl5';
is $c->resolve_empty_path('foo'), 'foo',
'defined path resolves to same path';
}
{
my $warn = '';
local $SIG{__WARN__} = sub { $warn .= $_[0] };
my $dir = mk_temp_dir;
my $ll_dir = catdir($dir, 'splat');
$c->ensure_dir_structure_for($ll_dir);
ok -d $ll_dir, 'base dir created';
ok -d $c->install_base_bin_path($ll_dir), 'bin dir created';
ok -d $c->install_base_perl_path($ll_dir), 'lib dir created';
ok -d $c->install_base_arch_path($ll_dir), 'arch dir created';
like $warn, qr/^Attempting to create directory/,
'warning about creation';
}