summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorGavin Carr <gonzai@users.sourceforge.net>2006-11-11 05:18:46 (GMT)
committerGavin Carr <gonzai@users.sourceforge.net>2006-11-11 05:18:46 (GMT)
commit79b36b4d71afeb016a3b4764b6b484754323b011 (patch)
tree665952c8d271caf406b950a094ef2f7329cf840b /t
parentd84da4e2ec8569b8ff15356b6881df307c7333ca (diff)
downloadmonitoring-plugin-perl-79b36b4d71afeb016a3b4764b6b484754323b011.tar.gz
Add get_shortname to NP::Functions export_ok list; update perldocs.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/Nagios-Plugin/trunk@1537 f882894a-f735-0410-b71e-b25c423dba1c
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}");