File Coverage

blib/lib/Monitoring/Generator/TestConfig/HostCheckData.pm
Criterion Covered Total %
statement 13 13 100.0
branch 1 2 50.0
condition n/a
subroutine 3 3 100.0
pod 1 1 100.0
total 18 19 94.7


line stmt bran cond sub pod time code
1             package Monitoring::Generator::TestConfig::HostCheckData;
2              
3 3     3   21 use strict;
  3         6  
  3         87  
4 3     3   15 use warnings;
  3         6  
  3         316  
5              
6             ########################################
7              
8             =over 4
9              
10             =item get_test_hostcheck
11              
12             returns the test hostcheck plugin source
13              
14             =back
15              
16             =cut
17              
18             sub get_test_hostcheck {
19 1     1 1 3 my $self = shift;
20 1         2 our $testhostcheck;
21 1 50       5 return($testhostcheck) if defined $testhostcheck;
22 1         3 $testhostcheck = do { local $/; };
  1         3  
  1         24  
23 1         13 return($testhostcheck);
24             }
25              
26             1;
27              
28             __DATA__