Branch Coverage

blib/lib/MARC/Schema.pm
Criterion Covered Total %
branch 28 30 93.3


line true false branch
23 5 1 unless ($self->{'fields'})
32 1 4 if ($self->{'file'}) { }
47 1 30 if builtin::reftype($record) eq "HASH"
60 1 557 unless ($spec)
61 1 0 if (not $options{'ignore_unknown_fields'}) { }
69 324 233 if ($options{'counter'} and not $spec->{'repeatable'})
70 1 323 if ($options{'counter'}{$field->[0]}++)
82 404 152 if ($spec->{'subfields'})
89 648 1 if ($sfspec) { }
1 0 elsif (not $options{'ignore_unknown_subfields'}) { }
90 1 647 if (not $sfspec->{'repeatable'} and $sfcounter{$code}++)
112 221 335 if ($spec->{'indicator1'})
118 217 4 if (@matches > 0) { }
133 158 398 if ($spec->{'indicator2'})
139 157 1 if (@matches > 0) { }