_build/lib/My/Builder.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod 0.0% 0 / 1 totaltotal 95.0% 19 / 20 SCAR 6.9
CC
2
Cov
100%
ACTION_code
2.0
BEGIN
1.0
CRAP 2.0
« blib/lib/SVN/Notify/Filter/Trac.pm ↑ Summary
1 package My::Builder;
2 1 ▶use Module::Build;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 our @ISA = qw(Module::Build);
4  
5 sub ACTION_code {
6 1 ▶ my $self = shift;
Subroutine ACTION_code: called CC=2 SCAR=6.9
Pod undocumented
7 1 $self->SUPER::ACTION_code(@_);
8 # Copy the test scripts and then set the shebang line and make
9 # sure that they're executable.
10 1 my @scripts;
11 1 my $to_dir = $self->localize_file_path("t/scripts");
12 1 for my $base (qw(testsvnlook testsendmail)) {
13 2 my $script = "$to_dir/$base";
14 2 push @scripts, $self->localize_file_path($script);
15 2 my $orig = $self->localize_file_path("t/bin/$base");
16 2 $self->copy_if_modified(
17 from => $orig,
18 to_dir => $to_dir,
19 flatten => 1,
20 );
21 }
22 1 $self->fix_shebang_line(@scripts);
23 1 $self->make_executable(@scripts);
24 1 $self->add_to_cleanup($to_dir);
25 }
26
27 1 1;
« blib/lib/SVN/Notify/Filter/Trac.pm ↑ Summary