Branch Coverage

blib/lib/Biblio/Citation/Parser/Utils.pm
Criterion Covered Total %
branch 18 64 28.1


line true false branch
93 23 9 unless ($$openurl{$_})
102 1 0 if ($$openurl{'date'})
104 0 1 if ($$openurl{'date'} =~ /^(\d{4})-(\d{2})-(\d{2})$/) { }
0 1 elsif ($$openurl{'date'} =~ /^(\d{4})-(\d{2})$/) { }
1 0 elsif ($$openurl{'date'} =~ /^(\d{4})$/) { }
128 0 1 if ($$openurl{'sici'})
133 0 0 if (not $$openurl{$_} and $sici{$_})
138 0 0 if ($sici{'locn'} and not $$openurl{'spage'})
148 0 1 if ($$openurl{'genre'})
150 0 0 if ($$openurl{'genre'} ne 'journal' and $$openurl{'genre'} ne 'book' and $$openurl{'genre'} ne 'conference' and $$openurl{'genre'} ne 'article' and $$openurl{'genre'} ne 'preprint' and $$openurl{'genre'} ne 'proceeding' and $$openurl{'genre'} ne 'bookitem')
165 0 1 if ($$openurl{'issn'})
168 0 0 if ($$openurl{'issn'} =~ /^(\d{4})(\d{4})$/)
172 0 0 unless ($$openurl{'issn'} =~ /^\d{4}-\d{4}$/)
181 0 1 if ($$openurl{'eissn'})
183 0 0 unless ($$openurl{'eissn'} =~ //)
192 0 1 if ($$openurl{'coden'})
194 0 0 unless ($$openurl{'coden'} =~ //)
203 0 1 if ($$openurl{'isbn'})
206 0 0 if (not $$openurl{'isbn'} =~ /([\dX]{8})$/) { }
218 0 0 if $n eq 'X'
221 0 0 unless (isbn_check(@tmp))
230 0 1 if ($$openurl{'bici'})
232 0 0 unless ($$openurl{'bici'} =~ //)
241 1 0 if ($$openurl{'pages'})
243 1 0 if ($$openurl{'pages'} =~ /^(\d+)-(\d+)$/) { }
255 0 1 if ($$openurl{'ssn'} and not $$openurl{'ssn'} =~ /^(winter|spring|summer|fall)$/)
261 0 1 if ($$openurl{'quarter'} and not $$openurl{'quarter'} =~ /^[1234]$/)
266 0 1 if ($$openurl{'url'} and not $$openurl{'url'} =~ /^(ht|f)tp/)
287 0 0 if ($$data{'captitle'})
288 0 0 if ($$data{'uctitle'})
295 0 0 if ($data_hash{$key})
297 0 0 if (ref $data_hash{$key} eq 'ARRAY') { }