Branch Coverage

blib/lib/MendeleySQLite.pm
Criterion Covered Total %
branch 17 32 53.1


line true false branch
20 0 1 unless (defined $$rh_params{'dbfile'} and -e $$rh_params{'dbfile'})
27 0 1 unless ($$self{'dbh'})
83 0 5 unless defined $document_id
94 0 5 unless (scalar @$ra_all)
110 0 5 unless defined $document_id
121 0 5 unless (scalar @$ra_all)
139 0 2 unless defined $id and defined $keyword
149 2 0 if (exists $keywords{$keyword})
166 0 2 unless defined $id and defined $tag
176 2 0 if (exists $tags{$tag})
192 1 2 unless defined $id
203 1 1 unless (defined $rh_document)
209 1 0 if (scalar @$ra_keywords)
215 1 0 if (scalar @$ra_tags)
253 13 0 if ($op eq 'select') { }
0 0 elsif ($op eq 'insert') { }