Branch Coverage

blib/lib/Text/BibTeX/Structure.pm
Criterion Covered Total %
branch 12 70 17.1


line true false branch
509 0 1 if $@
514 0 1 if (ref $module_info eq 'HASH')
579 0 9 unless @$constraint == 3 and ref $fields eq 'ARRAY'
582 0 9 unless $min >= 0 and $max >= $min and $max <= @$fields
613 0 0 if ($required)
619 0 0 if ($optional)
647 14 0 if ($required)
653 14 0 if ($optional)
718 0 0 unless exists $self->{'fieldgroups'}{$type}
822 0 9 unless @_ % 2 == 0
827 0 10 unless $self->known_option($option)
857 22 36 exists $options->{$option} ? :
862 9 40 wantarray ? :
943 0 0 unless ($self->{'structure'}->known_type($type))
945 0 0 if $warn
971 0 0 unless ($self->exists($field))
973 0 0 if $warn
974 0 0 if ($coerce)
976 0 0 if $warn
979 0 0 if $warn
1070 0 0 if $self->exists($_)
1072 0 0 if ($num_seen < $min or $num_seen > $max)
1074 0 0 if ($warn)
1076 0 0 if ($min == 0 and $max > 0) { }
0 0 elsif ($min < @$fields and $max == @$fields) { }
0 0 elsif ($min == $max) { }
1088 0 0 $num_seen < $min ? :
1100 0 0 if ($coerce)
1102 0 0 if ($num_seen < $min) { }
0 0 elsif ($num_seen > $max) { }
1105 0 0 if $warn
1114 0 0 if $warn
1121 0 0 if $warn
1151 0 0 unless $self->metatype == &BTE_REGULAR
1152 0 0 unless $self->check_type($warn)