File: main.t

package info (click to toggle)
libmodule-reader-perl 0.003003-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 116 kB
  • sloc: perl: 358; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 336 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;
use warnings;

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;