lib/Tapper/Installer.pm

filter: Statementstmt 83.3% 25 / 30 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod 100% 2 / 2 totaltotal 80.9% 34 / 42 CC 2 SCAR 7.5
CC
2
Cov
78%
logdie
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.1
« lib/Tapper/Installer/Precondition/Fstab.pm ↑ Summary script/tapper-installer-client.pl »
1 package Tapper::Installer;
2 # git description: v5.0.2-1-gb2e7a2e
3  
4 24 our $AUTHORITY = 'cpan:TAPPER';
5 # ABSTRACT: Tapper - Install everything needed for a test
6 24 $Tapper::Installer::VERSION = '5.0.3';
7 24 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 24 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 24 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 24 ▶use Socket;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 24 ▶use URI::Escape "uri_escape";
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 24 extends 'Tapper::Base';
15 24 with 'MooseX::Log::Log4perl';
16  
17 has cfg => (is => 'rw',
18 31 ▶ default => sub { {} },
Subroutine __ANON__: called CC=1 SCAR=0.0
19 24 );
20 24 with 'Tapper::Remote::Net';
21  
22  
23 sub BUILD
24 31 ▶{
Subroutine BUILD: called CC=1 SCAR=0.0
Pod documented
25 31 my ($self, $config) = @_;
26 31 $self->{cfg}=$config;
27 }
28  
29  
30 sub logdie
31 0 ▶{
Subroutine logdie: not called CC=2 SCAR=17.9
Pod documented
32 0 my ($self, $msg) = @_;
33 0 ▶ if ($self->cfg->{mcp_host}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->cfg->{'mcp_host'}) { } 0 0 0
34 0 $self->mcp_send({state => 'error-install', error => $msg});
35 } else {
36 0 $self->log->error("Can't inform MCP, no server is set");
37 }
38 0 die $msg;
39 }
40  
41 24 1;
42  
43 __END__
« lib/Tapper/Installer/Precondition/Fstab.pm ↑ Summary script/tapper-installer-client.pl »