lib/Monitoring/Generator/TestConfig/ServiceCheckData.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_servicecheck
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« lib/Monitoring/Generator/TestConfig/P1Data.pm ↑ Summary lib/Monitoring/Generator/TestConfig/InitScriptData.pm »
1 package Monitoring::Generator::TestConfig::ServiceCheckData;
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  
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 1 ▶sub get_test_servicecheck {
Subroutine get_test_servicecheck: called CC=2 SCAR=7.0
Pod documented
20 1 my $self = shift;
21 1 our $testservicecheck;
22 1 ▶ return($testservicecheck) if defined $testservicecheck;
Branch: 1 branch
BranchTrueFalseTotal
if defined $Monitoring::Generator::TestConfig::ServiceCheckData::testservicecheck 0 1 1
23 1 $testservicecheck = do { local $/; <DATA> };
24 1 return($testservicecheck);
25 }
26  
27 3 1;
28  
29 __DATA__
« lib/Monitoring/Generator/TestConfig/P1Data.pm ↑ Summary lib/Monitoring/Generator/TestConfig/InitScriptData.pm »