Makerelease/Step/Section.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 4 totaltotal 0.0% 0 / 33 CC 2 SCAR 11.5
CC
2
Cov
0%
test
6.0
possibly_skip_dryrun
2.0
step
2.0
CRAP 3.1
1 package Makerelease::Step::Section;
2  
3 use strict;
4 use Makerelease::Step;
5  
6 our $VERSION = '0.1';
7  
8 our @ISA=qw(Makerelease::Step);
9  
10 # sub-sections don't skip on the dry-runs... only executing steps do.
11 sub possibly_skip_dryrun {
12 my ($self, $step, $parentstep, $counter) = @_;
13 return 0;
14 }
15  
16 sub test {
17 my ($self, $step, $parentstep, $counter) = @_;
18 return 1 if ($self->require_piece($step, $parentstep, $counter,
19 'steps', 'step'));
20 return $self->{'master'}->test_steps($step, "$parentstep$counter.");
21 }
22  
23 sub step {
24 my ($self, $step, $parentstep, $counter) = @_;
25  
26 # XXX: should we call this on the parent module instead of our
27 # own? Probably...
28 $self->output("===== Entering Step: $parentstep$counter =====");
29 $self->{'master'}->process_steps($step, "$parentstep$counter.");
30 $self->output("(Leaving Step: $parentstep$counter)");
31 # step does nothing other than print things already handled by the parent
32 return;
33 }
34  
35 sub print_toc_header {
36 my ($self, $step, $parentstep, $counter) = @_;
37 $self->output_raw(sprintf("%-15.15s %s\n",
38 "$parentstep$counter", $step->{title}));
39 $self->{'master'}->print_toc($step, " $parentstep$counter.");
40 }
41  
42  
43 1;
44