blob: d17464f177b676625841a3559ba4c9bc4605f9a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# Check for exported vars
# Can't include Monitoring::Plugin::Functions because it also exports %STATUS_TEXT
use strict;
use Test::More tests=>4;
BEGIN { use_ok('Monitoring::Plugin') };
eval ' $_ = $STATUS_TEXT{0} ';
like( $@, '/Global symbol "%STATUS_TEXT" requires explicit package name/' );
use_ok("Monitoring::Plugin", qw(%STATUS_TEXT));
eval ' $_ = $STATUS_TEXT{0} ';
is( $@, '' );
|