App-Yath-Script
view release on metacpan or search on metacpan
t/unit/Script.t view on Meta::CPAN
close($fh);
my $found = find_in_updir($marker);
ok(defined $found, 'found marker file');
ok(-f $found, 'marker file is a file');
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 {
( run in 1.119 second using v1.01-cache-2.11-cpan-39bf76dae61 )