Condition Coverage

blib/lib/Data/EDI/X12.pm
Criterion Covered Total %
condition 54 93 58.0


and 3 conditions

line !l l&&!r l&&r condition
269 2 0 0 $spec->{'config'} and $spec->{'config'}{'config_terminator'}
273 2 0 0 $spec->{'config'} and $spec->{'config'}{'config_separator'}
277 2 0 0 $spec->{'config'} and exists $spec->{'config'}{'strict_ascii'}
281 2 0 0 $spec->{'config'} and exists $spec->{'config'}{'truncate_null'}
285 2 0 0 $spec->{'config'} and exists $spec->{'config'}{'hide_empty_sections'}
523 182 0 34 ref $segment and ref $segment eq 'HASH'
541 7 9 0 $section eq 'HEADER' and $IN_DETAIL
13 0 0 $section eq 'DETAIL' and $IN_FOOTER
571 10 1 1 $loop_def{$type} and not $IN_LOOP
579 7 4 1 $IN_LOOP and not $LOOP_SEGMENTS{$type}
620 10 3 1 $IN_LOOP and not $LOOP_SEGMENTS{$type}
628 12 1 1 $loop_def{$type} and not $IN_LOOP
679 23 0 143 $def->{'name'} && exists $$record{$def->{'name'}}
687 22 48 96 $value ne '' and not $def->{'bytes'}
70 29 67 $value ne '' and not $def->{'bytes'} and $def->{'min'}
29 67 0 $value ne '' and not $def->{'bytes'} and $def->{'min'} and length $value < $def->{'min'}
802 7 0 1 ref $section and ref $section eq 'HASH'
811 4 0 0 $hide_empty_sections and not exists $record->{$structure}
825 7 0 0 $hide_empty_sections and not exists $set->{'HEADER'}{$section}
841 8 0 2 ref $section and ref $section eq 'HASH'
850 4 0 0 $hide_empty_sections and not exists $sub_record->{$structure}
863 8 0 0 $hide_empty_sections and not exists $detail->{$section}
879 3 0 0 ref $section and ref $section eq 'HASH'
888 0 0 0 $hide_empty_sections and not exists $record->{$structure}
901 3 0 0 $hide_empty_sections and not exists $set->{'FOOTER'}{$section}

or 2 conditions

line l !l condition
295 0 2 $config_terminator || $args->{'terminator'} || '~'
0 2 $config_separator || $args->{'separator'} || '*'
2 0 $config_truncate_null || 0
0 2 $config_hide_empty_sections || 0
0 2 $config_strict_ascii || 0
683 48 118 $def->{'bytes'} ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
565 10 2 14 $section eq 'DETAIL' or $LOOP_SECTION eq 'DETAIL'
692 12 154 0 $def->{'format'} || "%$def->{'bytes'}s"