Everything/Adapter/Test.pm

filter: Statementstmt 55.0% 11 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 42.8% 3 / 7 Podpod 50.0% 2 / 4 totaltotal 51.6% 16 / 31 CC 1 SCAR 4.5
CC
1
Cov
55%
init
2.0
write
2.0
get_stats
2.0
CRAP 1.6
« Everything/Adapter/Base.pm ↑ Summary Everything/Adapter/Null.pm »
1 package Measure::Everything::Adapter::Test;
2  
3 # ABSTRACT: Test Adapter: for testing...
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  
9 1 ▶use base qw(Measure::Everything::Adapter::Base);
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 0 ▶sub init {
Subroutine init: not called CC=1 SCAR=6.9
Pod undocumented
12 0 my $self = shift;
13 0 $self->{_stats} = [];
14 }
15  
16 0 ▶sub write {
Subroutine write: not called CC=1 SCAR=6.9
Pod undocumented
17 0 my $self = shift;
18  
19 0 push(@{$self->{_stats}}, [@_]);
20 }
21  
22  
23 0 ▶sub get_stats {
Subroutine get_stats: not called CC=1 SCAR=6.9
Pod documented
24 0 my $self = shift;
25  
26 0 return $self->{_stats};
27 }
28  
29  
30 0 ▶sub reset {
Subroutine reset: not called CC=1 SCAR=6.9
Pod documented
31 0 my $self = shift;
32  
33 0 $self->{_stats} = [];
34 }
35  
36 1 1;
37  
38 __END__
« Everything/Adapter/Base.pm ↑ Summary Everything/Adapter/Null.pm »