Condition Coverage

blib/lib/MARC/Lint.pm
Criterion Covered Total %
condition 41 64 64.0


and 3 conditions

line !l l&&!r l&&r condition
160 0 0 13 ref $marc and $marc->isa('MARC::Record')
190 0 0 1 $tagrules->{'repeatable'} and $tagrules->{'repeatable'} eq 'NR'
0 1 0 $tagrules->{'repeatable'} and $tagrules->{'repeatable'} eq 'NR' and $field_seen{'880.' . $tagno}
201 0 94 110 $tagrules->{'repeatable'} and $tagrules->{'repeatable'} eq 'NR'
94 110 0 $tagrules->{'repeatable'} and $tagrules->{'repeatable'} eq 'NR' and $field_seen{$tagno}
223 102 158 0 $rule eq 'NR' and $sub_seen{$code}
350 0 0 0 length $isbnno == 10 and Business::ISBN::is_valid_checksum($isbnno) == 1
492 0 3 2 $newsubfields[$index] eq 'a' and length $newsubfields[$index + 1] != 7
604 13 0 1 $newsubfields[$index + 1] =~ /\b\w\. \b\w\./ and not $newsubfields[$index + 1] =~ /\[\bi\.e\. \b\w\..*\]/
617 4 8 4 $newsubfields[$index] eq 'b' and not $newsubfields[$index - 1] =~ / [:;=]$/
630 2 3 1 $newsubfields[$index] eq 'h' and not $newsubfields[$index - 1] =~ /(\S$)|(\-\- $)/
635 2 3 1 $newsubfields[$index] eq 'h' and not $newsubfields[$index + 1] =~ /^\[\w*\s*\w*\]/
647 2 3 1 $newsubfields[$index] eq 'n' and not $newsubfields[$index - 1] =~ /(\S\.$)|(\-\- \.$)/
661 2 1 1 $newsubfields[$index - 2] eq 'n' and not $newsubfields[$index - 1] =~ /(\S,$)|(\-\- ,$)/
1 1 1 $newsubfields[$index - 2] ne 'n' and not $newsubfields[$index - 1] =~ /(\S\.$)|(\-\- \.$)/
830 39 1 9 $article{$firstword} and not $isan_exception
836 0 5 4 $separator and $etc =~ /^[ \(\)\[\]'"\-]+/

or 2 conditions

line l !l condition
801 48 1 $field->subfield('a') || ''
949 0 1338 $self->{'_rules'}{$tagno} ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
322 16 0 0 $Business::ISBN::VERSION gt '2.02_01' or $Business::ISBN::VERSION gt '2.009'
346 0 0 1 $data =~ /^ISBN/ or $data =~ /^\d*\-\d+/
844 0 0 0 $ind eq '3' or $ind eq '0'