Catmandu/Importer/Mock.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 95.2% 20 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Catmandu/Importer/Null.pm ↑ Summary Catmandu/IdGenerator/UUID.pm »
1 package Catmandu::Importer::Mock;
2  
3 17 ▶use Catmandu::Sane;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 12 our $VERSION = '1.2025';
6  
7 17 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 17 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 12 with 'Catmandu::Importer';
11  
12 12 has size => (is => 'ro');
13  
14 9 ▶sub generator {
Subroutine generator: called CC=1 SCAR=0.0
Pod undocumented
15 9 my ($self) = @_;
16 9 my $n = 0;
17 sub {
18 return if defined $self->size && $n == $self->size;
19 return {n => $n++};
20 9 };
21 }
22  
23 12 1;
24  
25 __END__
« Catmandu/Importer/Null.pm ↑ Summary Catmandu/IdGenerator/UUID.pm »