use strict;
use warnings;
use Test::More tests => 4;
use File::Temp;
use local::lib ();
my $c = 'local::lib';
{
is($c->resolve_empty_path, '~/perl5');
is($c->resolve_empty_path('foo'), 'foo');
}
{
my $warn = '';
local $SIG{__WARN__} = sub { $warn .= $_[0] };
my $dir = File::Temp::tempdir();
$c->ensure_dir_structure_for("$dir/splat");
ok(-d "$dir/splat");
like($warn, qr/^Attempting to create directory/);
}