File: main.t

package info (click to toggle)
libmodule-reader-perl 0.003002-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 144 kB
  • ctags: 75
  • sloc: perl: 280; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 306 bytes parent folder | download
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/lib';

my $mod_content = do {
  open my $fh, '<'.Module::Reader::_OPEN_LAYERS, 't/lib/TestLib.pm';
  local $/;
  <$fh>;
};

is module_content('TestLib'), $mod_content, 'correctly load module from disk';

done_testing;