Condition Coverage

blib/lib/Data/EDI/X12.pm
Criterion Covered Total %
condition 36 58 62.0


and 3 conditions

line !l l&&!r l&&r condition
270 4 0 0 $spec->{'config'} and $spec->{'config'}{'config_terminator'}
274 4 0 0 $spec->{'config'} and $spec->{'config'}{'config_separator'}
278 4 0 0 $spec->{'config'} and exists $spec->{'config'}{'strict_ascii'}
282 4 0 0 $spec->{'config'} and exists $spec->{'config'}{'truncate_null'}
286 4 0 0 $spec->{'config'} and exists $spec->{'config'}{'auto_configure'}
549 279 0 68 ref $segment and ref $segment eq 'HASH'
567 19 16 1 $section eq 'HEADER' and $IN_DETAIL
30 0 0 $section eq 'DETAIL' and $IN_FOOTER
622 19 29 4 not @LOOP_PARENTS and $loop_def{$section}{$type}
29 19 0 @LOOP_PARENTS and $LOOP_PARENTS[-1]{'next_loop_segments'}{$type}
753 44 0 289 $def->{'name'} && exists $$record{$def->{'name'}}
761 52 94 187 $value ne '' and not $def->{'bytes'}
146 33 154 $value ne '' and not $def->{'bytes'} and $def->{'min'}
33 154 0 $value ne '' and not $def->{'bytes'} and $def->{'min'} and length $value < $def->{'min'}
810 61 0 9 ref $section and ref $section eq 'HASH'

or 2 conditions

line l !l condition
296 0 4 $config_terminator || $args->{'terminator'} || '~'
0 4 $config_separator || $args->{'separator'} || '*'
4 0 $config_truncate_null || 0
0 4 $config_strict_ascii || 0
757 96 237 $def->{'bytes'} ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
766 24 309 0 $def->{'format'} || "%$def->{'bytes'}s"