JobQueue/Command.pm

filter: Statementstmt 86.6% 13 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 33.3% 1 / 3 totaltotal 78.2% 18 / 23 CC 1 SCAR 1.8
CC
1
Cov
87%
failed
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« JobQueue/Sequence.pm ↑ Summary
1  
2 package Proc::JobQueue::Command;
3  
4 # $Id: Command.pm 13848 2009-07-23 21:34:00Z david $
5  
6 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 require Proc::JobQueue::Job;
9 3 our @ISA = qw(Proc::JobQueue::Job);
10  
11 sub new
12 40 ▶{
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
13 40 my ($pkg, $cmdStr, %params) = @_;
14  
15 40 return $pkg->SUPER::new(
16 command => $cmdStr,
17 desc => "run $cmdStr",
18 %params,
19 );
20 }
21  
22 sub success
23 40 ▶{
Subroutine success: called CC=1 SCAR=0.0
Pod undocumented
24 40 my ($job) = @_;
25 40 print "# Job terminated correctly $job->{command}\n";
26 }
27  
28 sub failed
29 0 ▶{
Subroutine failed: not called CC=1 SCAR=6.9
Pod documented
30 0 my ($job) = @_;
31 0 print "#ERROR: Job terminated incorrectly $job->{command}\n";
32 }
33  
34 3 1;
35  
36 __END__
« JobQueue/Sequence.pm ↑ Summary