| lib/Measure/Everything/Adapter.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 9 | 11 | 81.8 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 3 | 4 | 75.0 |
| pod | 0 | 1 | 0.0 |
| total | 12 | 16 | 75.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package Measure::Everything::Adapter; | ||||||
| 2 | 1 | 1 | 4506 | use strict; | |||
| 1 | 2 | ||||||
| 1 | 30 | ||||||
| 3 | 1 | 1 | 4 | use warnings; | |||
| 1 | 1 | ||||||
| 1 | 32 | ||||||
| 4 | 1 | 1 | 13 | use Module::Runtime qw(use_module); | |||
| 1 | 1 | ||||||
| 1 | 8 | ||||||
| 5 | |||||||
| 6 | # ABSTRACT: Tell Measure::Everything where to send the stats | ||||||
| 7 | |||||||
| 8 | sub set { | ||||||
| 9 | 0 | 0 | 0 | my ($self, $adapter, @args) = @_; | |||
| 10 | |||||||
| 11 | 0 | $Measure::Everything::global_stats = use_module('Measure::Everything::Adapter::'.$adapter)->new(@args); | |||||
| 12 | } | ||||||
| 13 | |||||||
| 14 | 1; | ||||||
| 15 | |||||||
| 16 | __END__ |