summaryrefslogtreecommitdiffstats
path: root/t/Nagios-Plugin-Functions-03.t
diff options
context:
space:
mode:
authorSven Nierlein <sven@nierlein.de>2014-01-19 23:54:34 (GMT)
committerSven Nierlein <sven@nierlein.de>2014-01-19 23:54:34 (GMT)
commitb418181dfe80dd75169b6e8a619ac1932155dea2 (patch)
treecad9c0ae0eae8e800cfff60555ead06ad33c6856 /t/Nagios-Plugin-Functions-03.t
parent1cd8d1c52cbd47121f344c4074aec84653f412ce (diff)
downloadmonitoring-plugin-perl-b418181dfe80dd75169b6e8a619ac1932155dea2.tar.gz
renamed module into Monitoring::Plugin
since the complete monitoring team has been renamed, we also rename this module. Signed-off-by: Sven Nierlein <sven@nierlein.de>
Diffstat (limited to 't/Nagios-Plugin-Functions-03.t')
-rw-r--r--t/Nagios-Plugin-Functions-03.t21
1 files changed, 0 insertions, 21 deletions
diff --git a/t/Nagios-Plugin-Functions-03.t b/t/Nagios-Plugin-Functions-03.t
deleted file mode 100644
index 3706e4c..0000000
--- a/t/Nagios-Plugin-Functions-03.t
+++ /dev/null
@@ -1,21 +0,0 @@
1# max_state tests
2
3use strict;
4use Test::More tests => 8;
5
6BEGIN { use_ok("Nagios::Plugin::Functions", ":all") }
7
8my $new_state = max_state( OK, WARNING );
9
10is( $new_state, WARNING, "Moved up to WARNING" );
11is( max_state( $new_state, UNKNOWN ), WARNING, "Still at WARNING" );
12
13$new_state = max_state( $new_state, CRITICAL );
14is( $new_state, CRITICAL, "Now at CRITICAL" );
15is( max_state( OK, OK ), OK, "This is OK" );
16
17is( max_state( OK, UNKNOWN ), OK, "This is still OK, not UNKNOWN" );
18
19is( max_state( OK, OK, OK, OK, OK, WARNING ), WARNING, "Use WARNING in this list" );
20
21is( max_state(), UNKNOWN, "Return UNKNOWN if no parameters" );