File: missing.t

package info (click to toggle)
libimporter-perl 0.026-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 236 kB
  • sloc: perl: 509; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use strict;
use warnings;

use Importer 'Test::More';

BEGIN {
    $INC{'Export/Tester.pm'} = 1;
    package Export::Tester;

    our @EXPORT = qw/foo bar bad/;

    sub foo { 'foo' }
    sub bar { 'bar' }
}

use Importer 'Export::Tester';

can_ok(__PACKAGE__, qw/foo bar/);

pass("Legacy, Exporter.pm allows you to list subs for export that are missing");

done_testing;