diff options
author | Gavin Carr <gonzai@users.sourceforge.net> | 2006-11-11 05:18:46 +0000 |
---|---|---|
committer | Gavin Carr <gonzai@users.sourceforge.net> | 2006-11-11 05:18:46 +0000 |
commit | 79b36b4d71afeb016a3b4764b6b484754323b011 (patch) | |
tree | 665952c8d271caf406b950a094ef2f7329cf840b /t | |
parent | d84da4e2ec8569b8ff15356b6881df307c7333ca (diff) | |
download | monitoring-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.t | 5 |
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 | ||
2 | use strict; | 2 | use strict; |
3 | use Test::More tests => 111; | 3 | use Test::More tests => 112; |
4 | 4 | ||
5 | BEGIN { use_ok("Nagios::Plugin::Functions", ":all"); } | 5 | BEGIN { use_ok("Nagios::Plugin::Functions", ":all"); } |
6 | Nagios::Plugin::Functions::_fake_exit(1); | 6 | Nagios::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 | ||
19 | is(get_shortname, "NAGIOS-PLUGIN-FUNCTIONS-01", "get_shortname ok"); | ||
20 | |||
18 | # Hardcoded checks of constants | 21 | # Hardcoded checks of constants |
19 | ok(defined %ERRORS, '%ERRORS defined'); | 22 | ok(defined %ERRORS, '%ERRORS defined'); |
20 | is(OK, $ERRORS{OK}, "OK => $ERRORS{OK}"); | 23 | is(OK, $ERRORS{OK}, "OK => $ERRORS{OK}"); |