Bug 42714: RM follow-up: Fix tests

prove t/00-load.t
prove xt/author/pod_coverage.t

Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Pedro Amorim 2026-08-13 10:07:41 +00:00
parent 55bc6f01e0
commit 662020e21b
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
2 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,7 @@ find(
return unless $m =~ s/[.]pm$//;
$m =~ s{^.*/Koha/}{Koha/};
$m =~ s{/}{::}g;
return if $m eq 'Koha::Script'; # has an INIT block, which can't run when required at runtime here
if ( is_testable($m) ) {
use_ok($m) || BAIL_OUT("***** PROBLEMS LOADING FILE '$m'");
}

View File

@ -28,6 +28,8 @@ use Koha::Devel::Files;
my $dev_files = Koha::Devel::Files->new( { context => 'tidy' } );
my @files = $dev_files->ls_perl_files;
@files = grep { $_ ne 'Koha/Script.pm' } @files; # has an INIT block, which can't run when required at runtime here
plan tests => scalar(@files) + 1;
for my $file (@files) {