lib/Tapper/PRC.pm

filter: Statementstmt 85.2% 29 / 34 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 88.8% 8 / 9 Podpod 100% 1 / 1 totaltotal 82.6% 38 / 46 CC 2 SCAR 6.9
CC
2
Cov
81%
mcp_error
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« script/tapper-automatic-test.pl ↑ Summary
1 package Tapper::PRC;
2 # git description: v5.0.4-5-gf34ee88
3  
4 28 our $AUTHORITY = 'cpan:TAPPER';
5 # ABSTRACT: Tapper - Program run control for test program automation
6 28 $Tapper::PRC::VERSION = '5.0.5';
7 29 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 29 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 29 ▶use IO::Socket::INET;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 29 ▶use YAML::Syck;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 29 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 29 ▶use Log::Log4perl;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 29 ▶use URI::Escape;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 28 extends 'Tapper::Base';
17 28 with 'MooseX::Log::Log4perl';
18  
19 has cfg => (is => 'rw',
20 isa => 'HashRef',
21 16 ▶ default => sub { {} },
Subroutine __ANON__: called CC=1 SCAR=0.0
22 28 );
23 28 with 'Tapper::Remote::Net';
24  
25  
26 sub mcp_error
27 0 ▶{
Subroutine mcp_error: not called CC=2 SCAR=17.9
Pod documented
28  
29 0 my ($self, $error) = @_;
30 0 $self->log->error($error);
31 0 my $retval = $self->mcp_inform({status => 'error-testprogram', error => $error});
32 0 ▶ $self->log->error($retval) if $retval;
Branch: 1 branch
BranchTrueFalseTotal
if $retval 0 0 0
33 0 exit 1;
34 };
35  
36 28 1;
37  
38 __END__
« script/tapper-automatic-test.pl ↑ Summary