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