builder/MyBuilder.pm

filter: Statementstmt 78.5% 33 / 42 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 77.7% 7 / 9 Podpod 0.0% 0 / 3 totaltotal 74.0% 40 / 54 CC 1 SCAR 2.0
CC
1
Cov
79%
new
2.0
ACTION_clean
2.0
BEGIN
1.0
CRAP 1.2
« blib/lib/Perl6/PVIP/Node.pm ↑ Summary blib/lib/Seis/Array.pm »
1 package builder::MyBuilder;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use parent qw(Module::Build);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use File::Copy;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Config;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
11 0 my ( $self, %args ) = @_;
12 0 $self->SUPER::new(
13 %args,
14 include_dirs => [qw(pvip/src/)],
15 extra_linker_flags => '-Lpvip -lpvip',
16 );
17 }
18  
19 1 ▶sub ACTION_code {
Subroutine ACTION_code: called CC=1 SCAR=0.0
Pod undocumented
20 1 my ($self) = @_;
21  
22 {
23 1 my $cwd = Cwd::getcwd();
24 1 chdir 'pvip';
25 1 $self->do_system($Config{make});
26 1 chdir $cwd;
27 }
28  
29 1 $self->process_PL_files;
30  
31 {
32 1 my $b = $self->cbuilder();
33  
34 1 my $obj_file = $b->compile(
35 source => 'bin/seis.c',
36 );
37 1 my $exe_file = $b->link_executable(objects => $obj_file);
38  
39 # script_files is set here as the resulting compiled
40 # executable name varies based on operating system
41 1 $self->script_files($exe_file);
42  
43 # Cleanup files from compilation
44 1 $self->add_to_cleanup($obj_file, $exe_file);
45 }
46  
47 1 $self->SUPER::ACTION_code();
48 }
49  
50 0 ▶sub ACTION_clean {
Subroutine ACTION_clean: not called CC=1 SCAR=6.9
Pod undocumented
51 0 my ($self) = @_;
52 {
53 0 my $cwd = Cwd::getcwd();
54 0 chdir 'pvip';
55 0 $self->do_system($Config{make}, 'clean');
56 0 chdir $cwd;
57 }
58 0 $self->SUPER::ACTION_clean();
59 }
60  
61 1 1;
62  
« blib/lib/Perl6/PVIP/Node.pm ↑ Summary blib/lib/Seis/Array.pm »