File Coverage

blib/lib/Data/Pipeline/Adapter/StringBuilder.pm
Criterion Covered Total %
statement 1 3 33.3
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 2 4 50.0


line stmt bran cond sub pod time code
1             package Data::Pipeline::Adapter::StringBuilder;
2              
3 1     1   1898 use Moose;
  0            
  0            
4             extends 'Data::Pipeline::Adapter';
5              
6             use Data::Pipeline::Iterator::ArrayOptions;
7             use URI;
8              
9             has pattern => (
10             isa => 'ArrayRef',
11             is => 'rw',
12             required => 1,
13             );
14              
15             has '+source' => (
16             default => sub {
17             my $self = shift;
18              
19             return Data::Pipeline::Iterator::ArrayOptions -> new(
20             params => $self -> pattern
21             ) -> source;
22             }
23             );
24              
25             1;
26              
27             __END__