summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/Nagios-Plugin-Functions-01.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/Nagios-Plugin-Functions-01.t b/t/Nagios-Plugin-Functions-01.t
index 7401945..70db221 100644
--- a/t/Nagios-Plugin-Functions-01.t
+++ b/t/Nagios-Plugin-Functions-01.t
@@ -1,6 +1,6 @@
1 1
2use strict; 2use strict;
3use Test::More tests => 111; 3use Test::More tests => 112;
4 4
5BEGIN { use_ok("Nagios::Plugin::Functions", ":all"); } 5BEGIN { use_ok("Nagios::Plugin::Functions", ":all"); }
6Nagios::Plugin::Functions::_fake_exit(1); 6Nagios::Plugin::Functions::_fake_exit(1);
@@ -15,6 +15,9 @@ foreach my $m ("", qw(::Threshold ::Getopt ::Performance ::Range)) {
15 is($a, $this_version, "Version number for $mod the same as Functions: $this_version"); 15 is($a, $this_version, "Version number for $mod the same as Functions: $this_version");
16} 16}
17 17
18# check get_shortname
19is(get_shortname, "NAGIOS-PLUGIN-FUNCTIONS-01", "get_shortname ok");
20
18# Hardcoded checks of constants 21# Hardcoded checks of constants
19ok(defined %ERRORS, '%ERRORS defined'); 22ok(defined %ERRORS, '%ERRORS defined');
20is(OK, $ERRORS{OK}, "OK => $ERRORS{OK}"); 23is(OK, $ERRORS{OK}, "OK => $ERRORS{OK}");