File Coverage

blib/lib/Monitoring/Generator/TestConfig/ServiceCheckData.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::ServiceCheckData;
2              
3 3     3   19 use strict;
  3         8  
  3         88  
4 3     3   13 use warnings;
  3         6  
  3         339  
5              
6              
7             ########################################
8              
9             =over 4
10              
11             =item get_test_servicecheck
12              
13             returns the test servicecheck plugin source
14              
15             =back
16              
17             =cut
18              
19             sub get_test_servicecheck {
20 1     1 1 3 my $self = shift;
21 1         2 our $testservicecheck;
22 1 50       5 return($testservicecheck) if defined $testservicecheck;
23 1         2 $testservicecheck = do { local $/; };
  1         8  
  1         46  
24 1         14 return($testservicecheck);
25             }
26              
27             1;
28              
29             __DATA__