Branch Coverage

blib/lib/Connector/Multi.pm
Criterion Covered Total %
branch 37 48 77.0


line true false branch
37 7 1 if (ref $baseconn) { }
40 0 1 unless eval "use $baseconn;1"
72 1 4 unless ref $hash
79 2 5 if (ref $hash->{$key} eq "SCALAR")
80 2 0 unless @path
116 1 7 unless $cache_id
122 0 7 if $Connector::Multi::EVAL_ERROR
137 0 240 unless ($conn)
154 508 264 if (exists $ptr_cache->{$path})
160 51 213 if ($meta and $meta->{'TYPE'} eq 'reference') { }
2 211 elsif ($meta and $meta->{'TYPE'} eq 'connector') { }
161 43 8 if ($meta->{'VALUE'} =~ /^([^:]+):(.+)$/) { }
164 40 3 if ($schema eq 'connector') { }
3 0 elsif ($schema eq 'env') { }
166 0 40 unless ($conn)
177 1 2 if @suffix > 0
178 0 3 unless (exists $ENV{$target})
190 3 5 if ($target[0] eq '') { }
193 1 7 unless scalar @prefix
246 14 30 if (not $conn) { }
0 30 elsif ($self->log->is_trace) { }
251 0 14 unless ($class)
256 0 14 unless eval "use $class;1"
259 0 14 if $self->log->is_trace