Cluster/Handle.pm

filter: Statementstmt 45.7% 16 / 35 Branchbran 0.0% 0 / 14 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 38.4% 5 / 13 Podpod 12.5% 1 / 8 totaltotal 31.4% 22 / 70 CC 8 SCAR 15.2
CC
8
Cov
33%
get_readset
6.0
get_proc
6.0
get_rproc
6.0
CRAP 4.5
« Cluster/Result.pm ↑ Summary Cluster/Tutorial.pm »
1 package GRID::Cluster::Handle;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use GRID::Machine;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use GRID::Cluster::Handle;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use IO::Select;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 # Constructor
11 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
12 0 my $class = shift;
13  
14 0 my %opts = @_;
15  
16 0 my $self = \%opts;
17  
18 0 bless $self, $class;
19 0 return $self;
20 }
21  
22 # Getters
23  
24 0 ▶sub get_readset {
Subroutine get_readset: not called CC=2 SCAR=17.9
Pod undocumented
25 0 my $self = shift;
26 0 ▶ return $self->{readset} if defined($self->{readset});
Branch: 1 branch
BranchTrueFalseTotal
if defined $self->{"readset"} 0 0 0
27 }
28  
29 0 ▶sub get_proc {
Subroutine get_proc: not called CC=2 SCAR=17.9
Pod undocumented
30 0 my $self = shift;
31 0 ▶ return $self->{proc} if defined($self->{proc});
Branch: 1 branch
BranchTrueFalseTotal
if defined $self->{"proc"} 0 0 0
32 }
33  
34 0 ▶sub get_rproc {
Subroutine get_rproc: not called CC=2 SCAR=17.9
Pod undocumented
35 0 my $self = shift;
36 0 ▶ return $self->{rproc} if defined($self->{rproc});
Branch: 1 branch
BranchTrueFalseTotal
if defined $self->{"rproc"} 0 0 0
37 }
38  
39 0 ▶sub get_wproc {
Subroutine get_wproc: not called CC=2 SCAR=17.9
Pod undocumented
40 0 my $self = shift;
41 0 ▶ return $self->{wproc} if defined($self->{wproc});
Branch: 1 branch
BranchTrueFalseTotal
if defined $self->{"wproc"} 0 0 0
42 }
43  
44 0 ▶sub get_pid {
Subroutine get_pid: not called CC=2 SCAR=17.9
Pod undocumented
45 0 my $self = shift;
46 0 ▶ return $self->{pid} if defined($self->{pid});
Branch: 1 branch
BranchTrueFalseTotal
if defined $self->{"pid"} 0 0 0
47 }
48  
49 0 ▶sub get_id {
Subroutine get_id: not called CC=2 SCAR=17.9
Pod undocumented
50 0 my $self = shift;
51 0 ▶ return $self->{id} if defined($self->{id});
Branch: 1 branch
BranchTrueFalseTotal
if defined $self->{"id"} 0 0 0
52 }
53  
54 0 ▶sub get_map_id_machine {
Subroutine get_map_id_machine: not called CC=2 SCAR=17.9
Pod undocumented
55 0 my $self = shift;
56 0 ▶ return $self->{map_id_machine} if defined($self->{map_id_machine});
Branch: 1 branch
BranchTrueFalseTotal
if defined $self->{"map_id_machine"} 0 0 0
57 }
58  
59 1 1;
60  
61 __END__
« Cluster/Result.pm ↑ Summary Cluster/Tutorial.pm »