Branch Coverage

blib/lib/MARC/Convert/Wikidata/Utils.pm
Criterion Covered Total %
branch 32 52 61.5


line true false branch
24 0 13 unless (defined $cover)
42 0 13 if (&none(sub {
43 0 0 if ($DEBUG)
55 1 16 unless (defined $date)
58 1 15 unless ($date)
85 0 15 unless ($ret_date =~ /^\-?\d+(\-\d+)?(\-\d+)?$/ms)
86 0 0 if ($DEBUG)
98 1 51 unless (defined $edition_number)
208 3 48 if (&isroman($ret_edition_number))
212 4 47 unless ($ret_edition_number =~ /^\d+$/ms)
213 0 4 if ($DEBUG)
225 0 11 unless (defined $number_of_pages)
233 0 11 unless ($ret_number_of_pages =~ /^\d+$/ms)
234 0 0 if ($DEBUG)
246 0 5 unless (defined $oclc)
265 4 8 if ($ret_publication_date =~ s/^c(.*)$/$1/ms or $ret_publication_date =~ s/^(.*)\?$/$1/ms)
271 1 2 unless ($ret_publication_date =~ /^\d+$/ms or $ret_publication_date =~ /^\d+\-\d*$/ms)
274 0 1 if ($DEBUG)
286 0 16 unless (defined $publisher_name)
312 0 28 unless (defined $publisher_place)
364 0 6 unless (defined $series_name)
385 0 16 unless (defined $series_ordinal)
405 3 13 if ($ret_series_ordinal =~ /^(\d+)-(\d+)$/ms)
408 3 0 if ($second < $first)
422 11 8 unless (defined $subtitle)
438 0 8 unless (defined $title)