Pluggable/Plugin/JobsFromXMLTemplate.pm

filter: Statementstmt 59.0% 13 / 22 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 56.2% 18 / 32 CC 3 SCAR 17.4
CC
3
Cov
50%
get_job_config
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.7
« Pluggable/Plugin/JobsFromXML.pm ↑ Summary Pluggable/EventHandler.pm »
1 package Schedule::Pluggable::Plugin::JobsFromXMLTemplate;
2 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use XML::Simple;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Template;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Carp qw/ croak /;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 0 ▶sub get_job_config {
Subroutine get_job_config: not called CC=3 SCAR=24.8
Pod documented
8 0 my $self = shift;
9 0 my $params = shift;
10 0 my $jobs = undef;
11 0 ▶ if ($params->{Jobs}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($params->{'Jobs'}) { } 0 0 0
12 0 ▶ if (-f $params->{Jobs}) {
Branch: 1 branch
BranchTrueFalseTotal
if (-f $params->{'Jobs'}) { } 0 0 0
13 0 $jobs = XMLin($params->{Jobs}, KeyAttr=>{ name => 'name1'});
14 }
15 else {
16 0 croak("Xml input file $params->{Jobs} does not exist");
17 }
18 }
19 else {
20 0 croak("Mandator Parameter Xml input file Jobs missing for JobsFromXML");
21 }
22 0 return $jobs->{Job};
23 }
24 1 1;
25 __END__
« Pluggable/Plugin/JobsFromXML.pm ↑ Summary Pluggable/EventHandler.pm »