| 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
| |||||||||||
| 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__ | ||||||||||