Condition Coverage

blib/lib/MARC/Lint.pm
Criterion Covered Total %
condition 41 61 67.2


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 157 1 $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\.$)|(\-\- \.$)/
828 39 1 9 $article{$firstword} and not $isan_exception
834 0 5 4 $separator and $etc =~ /^[ \(\)\[\]'"\-]+/

or 2 conditions

line l !l condition
799 48 1 $field->subfield('a') || ''
947 0 1302 $$self{'_rules'}{$tagno} ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
346 0 0 1 $data =~ /^ISBN/ or $data =~ /^\d*\-\d+/
842 0 0 0 $ind eq '3' or $ind eq '0'