From b418181dfe80dd75169b6e8a619ac1932155dea2 Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Mon, 20 Jan 2014 00:54:34 +0100 Subject: renamed module into Monitoring::Plugin since the complete monitoring team has been renamed, we also rename this module. Signed-off-by: Sven Nierlein --- t/Nagios-Plugin-Functions-04.t | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 t/Nagios-Plugin-Functions-04.t (limited to 't/Nagios-Plugin-Functions-04.t') diff --git a/t/Nagios-Plugin-Functions-04.t b/t/Nagios-Plugin-Functions-04.t deleted file mode 100644 index d3ff05c..0000000 --- a/t/Nagios-Plugin-Functions-04.t +++ /dev/null @@ -1,21 +0,0 @@ -# max_state_alt tests - -use strict; -use Test::More tests => 8; - -BEGIN { use_ok("Nagios::Plugin::Functions", ":all") } - -my $new_state = max_state_alt( OK, WARNING ); - -is( $new_state, WARNING, "Moved up to WARNING" ); -is( max_state_alt( $new_state, UNKNOWN ), WARNING, "Still at WARNING" ); - -$new_state = max_state_alt( $new_state, CRITICAL ); -is( $new_state, CRITICAL, "Now at CRITICAL" ); -is( max_state_alt( OK, OK ), OK, "This is OK" ); - -is( max_state_alt( OK, UNKNOWN ), UNKNOWN, "This is UNKNOWN" ); - -is( max_state_alt( OK, OK, OK, OK, OK, WARNING ), WARNING, "Use WARNING in this list" ); - -is( max_state_alt(), UNKNOWN, "Return UNKNOWN if no parameters" ); -- cgit v1.2.3-74-g34f1