Branch Coverage

blib/lib/DBD/Crate.pm
Criterion Covered Total %
branch 0 54 0.0


line true false branch
18 0 0 if $DBD::Crate::drh
21 0 0 unless $DBD::Crate::drh = DBI::_new_drh($class, {'Name', 'Crate', 'Version', $DBD::Crate::VERSION, 'Err', \$DBD::Crate::err, 'Errstr', \$DBD::Crate::errstr, 'State', \$DBD::Crate::state, 'Attribution', 'DBD::Crate by Mamod Mehyar', 'AutoCommit', 1})
52 0 0 defined $attr->{'utf8'} ? :
59 0 0 if ($dburl =~ s/^\[(.*?)\]$/$1/)
65 0 0 unless ($addr)
69 0 0 unless ($addr =~ /^http/)
73 0 0 if ($user or $pass)
119 0 0 unless ($content)
140 0 0 unless ($digest)
162 0 0 unless ($digest)
270 0 0 if ($ret->{'status'} == 599 and scalar @hosts)
275 0 0 if ($host eq $_)
284 0 0 unless ($ret->{'success'})
292 0 0 ref $data ? :
0 0 ref $data ? :
0 0 ref $data eq 'HASH' && ref $data->{'error'} ? :
305 0 0 if ($sth->{'BLOB'}) { }
306 0 0 unless ($sth->{'DIGEST'})
313 0 0 unless $ret = _fetch_data($sth, $statement, $sth->{'REQUEST_METHOD'}, $sth->{'REQUEST_PATH'})
316 0 0 if (@_)
318 0 0 unless $ret = _fetch_data($sth, $json, 'POST', '/_sql')
322 0 0 if ($sth->{'BLOB'})
323 0 0 if ($ret->{'status'} == 201) { }
0 0 elsif ($ret->{'status'} == 200) { }
0 0 elsif ($ret->{'status'} == 204) { }
334 0 0 unless ($data)
354 0 0 unless my $row = shift @$data