Branch Coverage

blib/lib/ETL/Pipeline.pm
Criterion Covered Total %
branch 173 226 76.5


line true false branch
155 3 69 if (defined $arguments->{'_chain'})
157 0 3 unless defined &blessed($object) and $object->isa("ETL::Pipeline")
161 2 1 if defined $object->_work_in
162 2 1 if defined $object->_data_in
169 64 8 if (defined $arguments->{'work_in'})
171 64 0 ref $values eq '' ? :
173 2 70 if (defined $arguments->{'data_in'})
175 2 0 ref $values eq '' ? :
180 64 8 if (defined $arguments->{'input'})
182 33 31 ref $values eq '' ? :
184 64 8 if (defined $arguments->{'output'})
186 62 2 ref $values eq '' ? :
190 0 72 if (defined $arguments->{'aliases'})
191 0 0 if (ref $arguments->{'aliases'} eq 'ARRAY') { }
244 1 83 if ($self->_alias_cache_built)
248 0 0 unless exists $cache->{'alias'}
280 0 3 if (defined $arguments) { }
326 0 0 if (scalar @pairs == 1 and ref $pairs[0] eq 'HASH') { }
0 0 elsif (scalar @pairs) { }
363 4 83 if (scalar @_) { }
364 0 4 unless defined $self->_work_in
367 4 0 if (hascontent($name)) { }
376 0 4 unless defined $match
420 65 142 if scalar @_
542 126 0 if (scalar @pairs <= 0) { }
0 0 elsif (scalar @pairs == 1) { }
547 0 0 if ref $self->_mapping ne "HASH"
635 65 78 if scalar @_
657 0 56 unless $success
764 6 9 if (scalar @_ > 1) { }
9 0 elsif (scalar @_ == 1) { }
772 0 9 if (ref $key eq 'HASH') { }
1 8 elsif (wantarray) { }
776 1 0 if (ref $result eq 'ARRAY') { }
0 0 elsif (ref $result eq 'HASH') { }
840 65 78 if (scalar @_ == 1) { }
5 73 elsif (scalar @_ > 1) { }
848 5 0 if (scalar %options) { }
852 0 5 unless $@ eq ""
856 0 5 unless defined $match
869 70 72 if (defined $new and $new->is_relative) { }
979 460 0 unless (defined $record)
986 100 360 if (ref $field eq 'CODE') { }
998 89 271 if ($check_alias and $full)
1000 41 48 unless ($self->_alias_cache_built)
1004 66 4 unless exists $cache->{$alias}
1022 456 4 scalar @$found <= 1 ? :
1032 4 426 if (ref $field eq 'Regexp') { }
239 187 elsif ($field =~ /^\d+$/u) { }
85 102 elsif (not $field =~ m[^/]u) { }
1033 4 0 if ref $alias eq "SCALAR"
1036 169 70 if ref $alias eq "SCALAR"
1039 85 0 if ref $alias eq "SCALAR"
1042 102 0 if ref $alias eq "SCALAR"
1110 10239 543 /HASH/u ? :
1117 4 123 if defined $code
1118 1 126 unless ($continue)
1130 15 111 if ($self->_has_constants)
1139 8 118 if (ref $mapping eq 'CODE') { }
1143 4 4 if defined $return
1147 0 278 if (ref $from eq "ARRAY")
1153 261 17 if (ref $values eq '') { }
17 0 elsif (ref $values eq 'ARRAY') { }
1155 21 0 if defined $_
1156 13 4 if (defined $invalid) { }
1162 4 0 if (scalar @usable) { }
1226 56 258 if ($type eq 'START') { }
55 203 elsif ($type eq 'END') { }
126 77 elsif ($type eq 'STATUS') { }
1234 0 126 unless $count % 50
1239 77 0 if (hascontent($source)) { }
1290 6 8 ref $field eq 'SCALAR' ? :
1291 8 6 if (hascontent($value))
1387 0 29 if (ref $current eq 'ARRAY') { }
1398 0 29 if (scalar @values == 1 and ref $values[0] eq 'ARRAY') { }
1405 29 0 if ref $_ eq ""
1479 4 82 if (ref $conditional eq 'CODE') { }
1493 56 90 if (ref $name eq 'ARRAY') { }
1500 146 0 unless ref $values eq "ARRAY"
1501 12 134 if (defined $conditional) { }
1504 2 10 if (&$conditional($_)) { }
1512 2 144 if $stop
1516 22 64 if (ref $seperator eq 'SCALAR') { }
1517 14 8 if (&any(sub {
1555 1 7 if (ref $value ne 'HASH') { }
0 7 elsif (not defined $field) { }
1 6 elsif (ref $field eq 'SCALAR') { }
1560 6 0 if (hascontent($key)) { }
1564 1 4 ref $value eq 'ARRAY' ? :
1599 2 14 ref $_[0] eq 'SCALAR' ? :
1608 8 30 if (ref $item eq 'ARRAY') { }
1609 2 6 if ref $item->[0] eq "SCALAR"
1727 0 16 if (ref $field eq "ARRAY")
1732 0 16 if ref $value eq "ARRAY"
1740 0 18 if (scalar @location == 0) { }
12 6 elsif (scalar @location == 1) { }
2 4 elsif (scalar @location == 2) { }
1743 10 2 $location[0] > 0 ? :
1747 2 0 if (hascontent($location[1])) { }
1755 2 2 if (hascontent($location[1])) { }
1817 3 68 if (not defined $self->_work_in) { }
4 64 elsif (not defined $self->_input) { }
2 62 elsif (not defined $self->_output) { }
1827 4 58 if (ref $mapping eq 'CODE') { }
51 14 elsif (ref $mapping eq 'HASH' and scalar $mapping > 0) { }
1830 2 60 unless $found
1833 62 9 if (wantarray) { }
1834 4 58 defined $error ? :
1836 7 2 defined $error ? :
1889 0 130 if scalar @arguments == 1 and ref $arguments[0] eq "ARRAY"
1895 11 119 if (substr($class, 0, 1) eq '+') { }
1899 119 0 if substr($class, 0, length $base) ne $base
1906 0 130 unless defined $object