Condition Coverage

blib/lib/AnyData.pm
Criterion Covered Total %
condition 54 145 37.2


and 2 conditions

line l !l condition
244 0 290 ref $c eq 'ARRAY' and scalar @$c

and 3 conditions

line !l l&&!r l&&r condition
47 4 7 1 $$parser{'col_names'} and not $col_names
67 0 0 0 $$flags{'file'} and $$flags{'file'} =~ /http:|ftp:/
127 0 0 0 $col_names && scalar @$col_names
0 0 0 not $col_names && scalar @$col_names and 'ru' =~ /$$self{'storage'}{'open_mode'}/
0 0 0 not $col_names && scalar @$col_names and 'ru' =~ /$$self{'storage'}{'open_mode'}/ and !$createMode eq 'o'
164 0 0 0 scalar @fields == 1 and not defined $fields[0]
178 0 0 0 scalar @fields == 1 and not defined $fields[0]
195 0 0 0 $$self{'parser'}{'col_names'} and $self->parser_type ne 'XML'
249 0 11 0 $file and $file =~ m[^http://|ftp://]
295 0 11 0 $format ne 'XML' and $format eq 'Base' || $url
310 11 0 0 $createMode and $lockMode
311 0 11 0 not $createMode and $lockMode
313 3 1 7 $$flags{'col_names'} and 'ru' =~ /$read_mode/
349 183 3 0 scalar @fields == 1 and not defined $fields[0]
363 198 0 0 $$self{'parser'}{'skip_pattern'} and $rec =~ /$$self{'parser'}{'skip_pattern'}/
422 0 24 6 defined $$row{$col} and is_matched($$row{$col}, $re)
434 0 30 0 $re and $re =~ /^(\S*)\s+(.*)/
547 0 0 0 $fh and $bak_fh
576 2 6 2 ref $file eq 'ARRAY' and not $read_mode
607 1 1 0 $tformat eq $sformat and $tformat eq 'XML'
622 2 0 0 ref $source_data eq 'ARRAY' and ref $$source_data[0] eq 'ARRAY'

or 2 conditions

line l !l condition
23 12 0 shift() || {}
31 7 5 $$flags{'col_names'} || undef
55 9 3 $$flags{'storage'} || $parser->storage_type || 'File'
96 1 0 $$self{'storage'}{'open_mode'} || 'r'
147 0 0 shift() || []
169 0 0 shift() || []
193 0 0 shift() || undef
245 290 0 $c ||= []
261 11 0 $file ||= ''
264 9 2 $othflags ||= {}
274 11 0 $othflags ||= {}
312 11 0 $read_mode ||= 'r'
330 1 10 $$self{'parser'}{'key'} ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
40 0 0 12 $$flags{'records'} ||= $$flags{'data'}
41 0 0 12 $$flags{'sep_char'} ||= $$flags{'ad_sep_char'}
0 0 12 $$flags{'field_sep'} ||= ($$flags{'sep_char'} ||= $$flags{'ad_sep_char'})
42 0 0 12 $$flags{'quote_char'} ||= $$flags{'ad_quote_char'}
0 0 12 $$flags{'quote'} ||= ($$flags{'quote_char'} ||= $$flags{'ad_quote_char'})
43 0 0 12 $$flags{'escape_char'} ||= $$flags{'ad_escape_char'}
0 0 12 $$flags{'escape'} ||= ($$flags{'escape_char'} ||= $$flags{'ad_escape_char'})
44 0 0 12 $$flags{'eol'} ||= $$flags{'ad_eol'}
0 0 12 $$flags{'record_sep'} ||= ($$flags{'eol'} ||= $$flags{'ad_eol'})
198 0 0 0 $$self{'parser'}{'key'} ||= $$col_names[0]
265 0 0 11 ref $formatref eq 'HASH' or $$othflags{'data'}
282 0 0 8 $format eq 'Mp3' or $format eq 'FileSys'
295 0 0 11 $format eq 'Base' || $url
331 1 10 0 $$self{'parser'}{'key'} ||= $$col_names[0]
416 0 18 16 not $$row{$self->key_col} or $$row{$self->key_col} ne $key
446 0 0 0 $numop =~ /$op/ or $chrop =~ /$op/
595 0 0 0 $$t{'ad'}{'parser'}{'errstr'} || $$t{'ad'}{'storage'}{'errstr'}
606 2 0 0 $tformat ||= $sformat