Branch Coverage

blib/lib/CPAN/Index/Loader.pm
Criterion Covered Total %
branch 18 30 60.0


line true false branch
59 2 0 unless ($self->cache)
145 1 3 $file =~ /\.gz$/ ? :
216 0 2 unless my $schema = _INSTANCE(shift(), 'DBIx::Class::Schema')
218 0 2 unless my $handle = _HANDLE(shift())
229 0 2 if ($@ =~ /Rollback failed/) { }
0 2 elsif ($@) { }
249 0 18 unless ($line =~ /^alias\s+(\S+)\s+\"(.+)\"[\012\015]+$/)
257 0 18 unless (@found)
303 0 2 unless my $schema = _INSTANCE(shift(), 'DBIx::Class::Schema')
305 0 2 unless my $handle = _HANDLE(shift())
310 2 16 unless $line =~ /[^\s\012\015]/
320 0 2 if ($@ =~ /Rollback failed/) { }
0 2 elsif ($@) { }
335 0 18 unless ($line =~ /^(\S+)\s+(\S+)\s+(.+?)[\012\015]+$/)
339 4 14 $2 eq 'undef' ? :