lib/Monitoring/Generator/TestConfig/HostCheckData.pm

filter: Statementstmt 100% 14 / 14 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 95.0% 19 / 20 CC 2 SCAR 4.1
CC
2
Cov
94%
get_test_hostcheck
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« script/create_monitoring_test_config.pl ↑ Summary lib/Monitoring/Generator/TestConfig/P1Data.pm »
1 package Monitoring::Generator::TestConfig::HostCheckData;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
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 1 ▶sub get_test_hostcheck {
Subroutine get_test_hostcheck: called CC=2 SCAR=7.0
Pod documented
19 1 my $self = shift;
20 1 our $testhostcheck;
21 1 ▶ return($testhostcheck) if defined $testhostcheck;
Branch: 1 branch
BranchTrueFalseTotal
if defined $Monitoring::Generator::TestConfig::HostCheckData::testhostcheck 0 1 1
22 1 $testhostcheck = do { local $/; <DATA> };
23 1 return($testhostcheck);
24 }
25  
26 3 1;
27  
28 __DATA__
« script/create_monitoring_test_config.pl ↑ Summary lib/Monitoring/Generator/TestConfig/P1Data.pm »