Catmandu/Exporter/Mock.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 2 totaltotal 92.8% 26 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Catmandu/Serializer/json.pm ↑ Summary Catmandu/Exporter/Null.pm »
1 package Catmandu::Exporter::Mock;
2  
3 2 ▶use Catmandu::Sane;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 our $VERSION = '1.2025';
6  
7 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 with 'Catmandu::Exporter';
11  
12 2 ▶has _data_ => (is => 'ro', default => sub {[]});
Subroutine __ANON__: called CC=1 SCAR=0.0
13  
14 4 ▶sub add {
Subroutine add: called CC=1 SCAR=0.0
Pod undocumented
15 4 my ($self, $data) = @_;
16 4 push @{$self->_data_}, $data;
17 4 1;
18 }
19  
20 2 ▶sub as_arrayref {
Subroutine as_arrayref: called CC=1 SCAR=0.0
Pod undocumented
21 2 my ($self) = @_;
22 2 return $self->_data_;
23 }
24  
25 2 1;
26  
27 __END__
« Catmandu/Serializer/json.pm ↑ Summary Catmandu/Exporter/Null.pm »