Sponsoring The Perl Toolchain Summit 2025: Help make this important event another success Learn more

use strict;
use Test::More 0.88;
use Module::Reader qw(:all);
use lib 't/test-data/lib';
my $mod_content = do {
open my $fh, '<'.Module::Reader::_OPEN_LAYERS, 't/test-data/lib/MyTestModule.pm';
local $/;
<$fh>;
};
is module_content('MyTestModule'), $mod_content, 'correctly load module from disk';
done_testing;