Branch Coverage

blib/lib/ETL/Pipeline.pm
Criterion Covered Total %
branch 94 116 81.0


line true false branch
190 3 45 if (defined $arguments->{'chain'})
192 0 3 unless defined &blessed($object)
193 0 3 unless $object->isa('ETL::Pipeline')
194 2 1 if defined $object->work_in
195 2 1 if defined $object->data_in
202 32 16 if (defined $arguments->{'work_in'})
204 32 0 ref $values eq '' ? :
206 2 46 if (defined $arguments->{'data_in'})
208 2 0 ref $values eq '' ? :
217 34 14 if (defined $arguments->{'input'})
219 12 22 ref $values eq '' ? :
221 19 27 if (defined $arguments->{'constants'})
225 11 35 if (defined $arguments->{'mapping'})
229 31 15 if (defined $arguments->{'output'})
231 29 2 ref $values eq '' ? :
247 3 0 unless exists $arguments{'chain'}
317 36 254 if scalar @_
392 0 17 if (scalar @pairs == 1 and ref $pairs[0] eq 'HASH') { }
12 5 elsif (scalar @pairs) { }
450 0 25 if (scalar @pairs == 1 and ref $pairs[0] eq 'HASH') { }
20 5 elsif (scalar @pairs) { }
525 33 116 if scalar @_
548 0 5 unless $success
564 1 13 if $self->execute_code_ref($self->input->stop_if)
565 1 12 if $self->execute_code_ref($self->input->skip_if)
569 3 3 if ref $value eq 'CODE'
575 6 18 if (ref $from eq 'CODE') { }
0 18 elsif (ref $from eq 'ARRAY') { }
653 34 45 if (scalar @_ == 1) { }
4 41 elsif (scalar @_ > 1) { }
658 4 0 if (defined $options{'matching'}) { }
661 3 1 hascontent($options{'search'}) ? :
672 0 4 unless defined $match
716 4 24 if (scalar @_)
717 0 4 unless defined $self->work_in
720 4 0 if (hascontent($name)) { }
729 0 4 unless defined $match
807 6 9 if (scalar @_ > 1)
815 1 14 if (wantarray) { }
817 1 0 if (ref $result eq 'ARRAY') { }
0 0 elsif (ref $result eq 'HASH') { }
857 3 17 if (not defined $self->work_in) { }
4 13 elsif (not defined $self->input) { }
2 11 elsif (not defined $self->output) { }
2 9 elsif (not $self->has_mapping || $self->has_constants) { }
867 11 9 if (wantarray) { }
868 7 4 $error eq '' ? :
870 2 7 $error eq '' ? :
905 13 10 if (nocontent($mark)) { }
5 5 elsif ($mark eq 'start') { }
5 0 elsif ($mark eq 'end') { }
907 0 13 unless $count % 50
910 0 5 if ($self->input->does('Data::Pipeline::Input::File')) { }
944 25 37 if (defined $code and ref $code eq 'CODE') { }
994 0 69 if scalar @arguments == 1 and ref $arguments[0] eq 'ARRAY'
997 10 59 if ($class =~ /^\+/u) { }
59 0 elsif (not $class =~ /^ETL::Pipeline::$action/u) { }
1007 2 67 unless defined $object