blib/lib/HPC/Runner/Command/single_node.pm

filter: Statementstmt 69.5% 16 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod n/a totaltotal 66.6% 18 / 27 CC 1 SCAR 4.1
CC
1
Cov
70%
BUILD
2.0
execute
2.0
BEGIN
1.0
CRAP 1.5
« blib/lib/HPC/Runner/Command/submit_jobs/Utils/Scheduler/Job.pm ↑ Summary blib/lib/HPC/Runner/Command/submit_jobs/Utils/Scheduler/Batch.pm »
1 package HPC::Runner::Command::single_node;
2  
3 1 ▶use MooseX::App::Command;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 extends 'HPC::Runner::Command';
7  
8 1 with 'HPC::Runner::Command::Logger::JSON';
9 1 with 'HPC::Runner::Command::Utils::Base';
10 1 with 'HPC::Runner::Command::Utils::Log';
11 1 with 'HPC::Runner::Command::Utils::Git';
12 1 with 'HPC::Runner::Command::execute_job::Utils::MCE';
13  
14 1 command_short_description 'Execute commands';
15 1 command_long_description
16 'Take the parsed files from hpcrunner.pl submit_jobs and executes the code';
17  
18 1 option 'batch_index_start' => (
19 is => 'rw',
20 isa => 'Num',
21 required => 0,
22 predicate => 'has_batch_index_start',
23 documentation =>
24 'Counter to tell execute_array where to start reading in the infile.'
25 . ' Omit this option in order to run in single node.'
26 );
27  
28 sub BUILD {
29 0 ▶ my $self = shift;
Subroutine BUILD: not called CC=1 SCAR=6.9
30  
31 0 $self->gen_load_plugins;
32 0 $self->job_load_plugins;
33 }
34  
35 sub execute {
36 0 ▶ my $self = shift;
Subroutine execute: not called CC=1 SCAR=6.9
37  
38 0 $self->git_things;
39 0 $self->single_node(1);
40 0 $self->run_mce;
41 }
42  
43 1 1;
« blib/lib/HPC/Runner/Command/submit_jobs/Utils/Scheduler/Job.pm ↑ Summary blib/lib/HPC/Runner/Command/submit_jobs/Utils/Scheduler/Batch.pm »