App-Yath-Script
view release on metacpan or search on metacpan
t/unit/Script.t view on Meta::CPAN
like($found, qr/\Q$marker\E$/, 'path ends with marker filename');
unlink $marker;
# Non-existent file returns undef
my $missing = find_in_updir('.nonexistent_file_that_should_not_exist');
is($missing, undef, 'returns undef for missing file');
};
subtest 'script and module accessors' => sub {
# Before do_begin, these depend on package state. Just verify they are callable.
ok(defined &App::Yath::Script::script, 'script() is defined');
ok(defined &App::Yath::Script::module, 'module() is defined');
};
subtest 'inject_includes' => sub {
local %ENV = %ENV;
delete $ENV{T2_HARNESS_INCLUDES};
# Should be a no-op when env var is not set
my @orig_inc = @INC;
( run in 1.854 second using v1.01-cache-2.11-cpan-13bb782fe5a )