blib/lib/Pinto/Remote/Result.pm

filter: Statementstmt 83.3% 10 / 12 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 100% 1 / 1 totaltotal 72.2% 13 / 18 CC 2 SCAR 12.5
CC
2
Cov
71%
exit_status
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.5
« blib/lib/Pinto/Action/Add.pm ↑ Summary blib/lib/Pinto/Role/PauseConfig.pm »
1 # ABSTRACT: The result from running a remote Action
2  
3 package Pinto::Remote::Result;
4  
5 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use MooseX::Types::Moose qw(Bool);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 #-----------------------------------------------------------------------------
10  
11 1 our $VERSION = '0.14'; # VERSION
12  
13 #------------------------------------------------------------------------------
14  
15 1 has was_successful => (
16 is => 'ro',
17 isa => Bool,
18 default => 0,
19 );
20  
21 #-----------------------------------------------------------------------------
22  
23  
24 0 ▶sub exit_status {
Subroutine exit_status: not called CC=2 SCAR=17.9
Pod documented
25 0 my ($self) = @_;
26 0 ▶ return $self->was_successful ? 0 : 1;
Branch: 1 branch
BranchTrueFalseTotal
$self->was_successful ? : 0 0 0
27 }
28  
29 #-----------------------------------------------------------------------------
30  
31 1 __PACKAGE__->meta->make_immutable;
32  
33 #-----------------------------------------------------------------------------
34 1 1;
35  
36 __END__
« blib/lib/Pinto/Action/Add.pm ↑ Summary blib/lib/Pinto/Role/PauseConfig.pm »