| 1 |
#!perl |
| 2 |
|
| 3 |
use 5.00800; |
| 4 |
|
| 5 |
use strict; |
| 6 |
use warnings; |
| 7 |
|
| 8 |
use Test::More tests => 33; |
| 9 |
|
| 10 |
our $VERSION = '1.5.4'; |
| 11 |
|
| 12 |
use_ok('Monitoring::Plugin'); |
| 13 |
can_ok( 'Monitoring::Plugin', 'new' ); |
| 14 |
can_ok( 'Monitoring::Plugin', 'nagios_exit' ); |
| 15 |
can_ok( 'Monitoring::Plugin', 'add_perfdata' ); |
| 16 |
can_ok( 'Monitoring::Plugin', 'perfdata' ); |
| 17 |
|
| 18 |
use_ok( 'Monitoring::Plugin' . '::Getopt' ); |
| 19 |
can_ok( 'Monitoring::Plugin' . '::Getopt', 'new' ); |
| 20 |
can_ok( 'Monitoring::Plugin' . '::Getopt', 'arg' ); |
| 21 |
can_ok( 'Monitoring::Plugin' . '::Getopt', 'getopts' ); |
| 22 |
can_ok( 'Monitoring::Plugin' . '::Getopt', 'get' ); |
| 23 |
|
| 24 |
use_ok( 'Monitoring::Plugin' . '::Threshold' ); |
| 25 |
can_ok( 'Monitoring::Plugin' . '::Threshold', 'new' ); |
| 26 |
can_ok( 'Monitoring::Plugin' . '::Threshold', 'set_thresholds' ); |
| 27 |
|
| 28 |
use_ok('IO::Select'); |
| 29 |
can_ok( 'IO::Select', 'new' ); |
| 30 |
can_ok( 'IO::Select', 'count' ); |
| 31 |
can_ok( 'IO::Select', 'can_read' ); |
| 32 |
can_ok( 'IO::Select', 'remove' ); |
| 33 |
can_ok( 'IO::Select', 'handles' ); |
| 34 |
|
| 35 |
use_ok('Net::DNS::Resolver'); |
| 36 |
can_ok( 'Net::DNS::Resolver', 'new' ); |
| 37 |
can_ok( 'Net::DNS::Resolver', 'can' ); |
| 38 |
can_ok( 'Net::DNS::Resolver', 'bgsend' ); |
| 39 |
can_ok( 'Net::DNS::Resolver', 'bgread' ); |
| 40 |
|
| 41 |
use_ok('English'); |
| 42 |
use_ok('Readonly'); |
| 43 |
|
| 44 |
use_ok('Net::IP'); |
| 45 |
can_ok( 'Net::IP', 'ip_expand_address' ); |
| 46 |
|
| 47 |
use_ok('Data::Validate::Domain'); |
| 48 |
can_ok( 'Data::Validate::Domain', 'is_hostname' ); |
| 49 |
|
| 50 |
use_ok('Data::Validate::IP'); |
| 51 |
can_ok( 'Data::Validate::IP', 'is_ipv4' ); |
| 52 |
can_ok( 'Data::Validate::IP', 'is_ipv6' ); |
| 53 |
|