Condition Coverage

blib/lib/Data/EDI/X12.pm
Criterion Covered Total %
condition 55 96 57.2


and 3 conditions

line !l l&&!r l&&r condition
269 3 0 0 $spec->{'config'} and $spec->{'config'}{'config_terminator'}
273 3 0 0 $spec->{'config'} and $spec->{'config'}{'config_separator'}
277 3 0 0 $spec->{'config'} and exists $spec->{'config'}{'strict_ascii'}
281 3 0 0 $spec->{'config'} and exists $spec->{'config'}{'truncate_null'}
285 3 0 0 $spec->{'config'} and exists $spec->{'config'}{'hide_empty_sections'}
289 3 0 0 $spec->{'config'} and exists $spec->{'config'}{'auto_configure'}
552 245 0 34 ref $segment and ref $segment eq 'HASH'
570 8 13 0 $section eq 'HEADER' and $IN_DETAIL
17 0 0 $section eq 'DETAIL' and $IN_FOOTER
600 14 1 1 $loop_def{$type} and not $IN_LOOP
608 11 4 1 $IN_LOOP and not $LOOP_SEGMENTS{$type}
649 15 3 1 $IN_LOOP and not $LOOP_SEGMENTS{$type}
657 17 1 1 $loop_def{$type} and not $IN_LOOP
708 37 0 208 $def->{'name'} && exists $$record{$def->{'name'}}
716 33 72 140 $value ne '' and not $def->{'bytes'}
105 31 109 $value ne '' and not $def->{'bytes'} and $def->{'min'}
31 109 0 $value ne '' and not $def->{'bytes'} and $def->{'min'} and length $value < $def->{'min'}
831 11 0 1 ref $section and ref $section eq 'HASH'
840 4 0 0 $hide_empty_sections and not exists $record->{$structure}
854 11 0 0 $hide_empty_sections and not exists $set->{'HEADER'}{$section}
870 12 0 2 ref $section and ref $section eq 'HASH'
879 4 0 0 $hide_empty_sections and not exists $sub_record->{$structure}
892 12 0 0 $hide_empty_sections and not exists $detail->{$section}
908 4 0 0 ref $section and ref $section eq 'HASH'
917 0 0 0 $hide_empty_sections and not exists $record->{$structure}
930 4 0 0 $hide_empty_sections and not exists $set->{'FOOTER'}{$section}

or 2 conditions

line l !l condition
299 0 3 $config_terminator || $args->{'terminator'} || '~'
0 3 $config_separator || $args->{'separator'} || '*'
3 0 $config_truncate_null || 0
0 3 $config_hide_empty_sections || 0
0 3 $config_strict_ascii || 0
712 72 173 $def->{'bytes'} ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
594 14 2 19 $section eq 'DETAIL' or $LOOP_SECTION eq 'DETAIL'
721 18 227 0 $def->{'format'} || "%$def->{'bytes'}s"