Everything/Adapter.pm

filter: Statementstmt 64.7% 11 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 58.3% 14 / 24 CC 2 SCAR 11.0
CC
2
Cov
58%
set
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« Everything.pm ↑ Summary Everything/Adapter/Base.pm »
1 package Measure::Everything::Adapter;
2  
3 # ABSTRACT: Tell Measure::Everything where to send the stats
4 1 our $VERSION = '1.003'; # VERSION
5  
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Module::Runtime qw(use_module);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 0 ▶sub set {
Subroutine set: not called CC=2 SCAR=17.9
Pod undocumented
11 0 my ($self, $adapter, @args) = @_;
12  
13 0 my $module_name;
14 0 ▶ if ( $adapter =~ s/^\+// ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($adapter =~ s/^\+//) { } 0 0 0
15 0 $module_name = $adapter;
16 } else {
17 0 $module_name = 'Measure::Everything::Adapter::'.$adapter;
18 }
19  
20 0 $Measure::Everything::global_stats = use_module($module_name)->new(@args);
21 }
22  
23 1 1;
24  
25 __END__
« Everything.pm ↑ Summary Everything/Adapter/Base.pm »