~ubuntu-branches/ubuntu/utopic/libnagios-plugin-perl/utopic

« back to all changes in this revision

Viewing changes to t/Nagios-Plugin-Performance.t

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Niebur
  • Date: 2009-06-05 16:43:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090605164316-jkkuom3xu616gxr4
Tags: 0.33-1
* New upstream release
* Debian Policy 3.8.1
* Add debian/README.source to document quilt usage, as required by
  Debian Policy since 3.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
 
2
use warnings;
2
3
use strict;
3
4
use Test::More;
4
5
use Nagios::Plugin::Functions;
40
41
  },
41
42
);
42
43
 
43
 
plan tests => (11 * scalar @test) + 175;
 
44
plan tests => (11 * scalar @test) + 176;
44
45
 
45
46
use_ok('Nagios::Plugin::Performance');
46
47
diag "\nusing Nagios::Plugin::Performance revision ". $Nagios::Plugin::Performance::VERSION . "\n" if $ENV{TEST_VERBOSE};
349
350
is( $p[2]->max, undef, "max ok");
350
351
 
351
352
 
 
353
@p = Nagios::Plugin::Performance->parse_perfstring("processes=9;WKFLSV32.exe;9=");
 
354
is_deeply( \@p, [], "Fails parsing correctly");
 
355
 
352
356
# add_perfdata tests in t/Nagios-Plugin-01.t