Condition Coverage

blib/lib/Data/CTable.pm
Criterion Covered Total %
condition 207 423 48.9


and 3 conditions

line !l l&&!r l&&r condition
1497 15 0 1 not $Valid and $Existing
0 4 11 $Valid and not $Existing
1646 0 0 0 $Old ne $New && $this->warn("Failed to rename column $Old to ${New}: $New exists.")
1658 0 3 0 defined $$this{'_SortSpecs'} and $$this{'_SortSpecs'}{$Old}
2523 0 0 8 defined $Old and defined $New
2604 3 5 6 $Num >= 0 && $Num < $this->length
3003 2 0 3 defined $Vector and ref $Vector eq 'ARRAY'
3316 0 0 13 CORE::length $Field and ref $Sub eq 'CODE'
3357 6 0 3 not $Not and $Add
0 1 5 $Not and not $Add
0 0 1 $Not and $Add
3502 0 0 10 ref $SortOrder eq 'ARRAY' and @$SortOrder
3528 0 0 10 CORE::length $DefaultSortType and exists $$SRoutines{$DefaultSortType}
3670 5 1 2 ref $SortOrder eq 'ARRAY' && @$SortOrder > 0
3673 5 1 2 defined $SortOrder and $Valid
4681 14 0 5 ref $FieldList eq 'ARRAY' && @$FieldList
4750 14 1 4 $FieldListValid && "@{[sort(@$IncomingFields)];}" ne "@{[sort(@$FieldList)];}"
4832 57 0 0 $MaxRecords and $RecordsRead >= $MaxRecords
4845 57 0 0 $RecordsRead % 100 == 0 and $RecordsRead + 100 > $#{$$FieldVectors[$$FieldNums[0]];}
4850 0 0 0 $MaxRecords and $MaxRecords < $EstTotalRecords
4984 0 2 66 -e $FileName and -e $CacheFileName
2 3 63 -e $FileName and -e $CacheFileName and (stat $CacheFileName)[9] > (stat $FileName)[9]
5011 45 0 18 ref $FieldList eq 'ARRAY' and @$FieldList
5076 60 0 0 $$this{'_MaxRecords'} and $this->length > $$this{'_MaxRecords'}
5664 0 8 0 -e $WriteFileName and not -w $WriteFileName
5733 0 33 0 $QuoteCheck and $X =~ /$QuoteOrDelimCheck/
5771 0 99 0 $QuoteCheck and $X =~ /$QuoteOrDelimCheck/
7099 12 0 214598 $SameOp && $Tot == $LastTot
7100 10 214598 2 $Tot && $Pos == $Tot
7113 10 0 6 defined $Pos and $Tot
7118 4 1 11 not $SameOp and $Wait

or 2 conditions

line l !l condition
1007 50 76 $$this{'_FileName'} ||= undef
1020 50 76 $$this{'_LineEnding'} ||= undef
1021 50 76 $$this{'_FDelimiter'} ||= undef
1028 50 76 $$this{'_ReturnEncoding'} ||= "\cK"
1033 50 76 $$this{'_DefaultSortType'} ||= 'String'
1034 50 76 $$this{'_DefaultSortDirection'} ||= 1
1042 66 60 $$this{'_FieldList'} ||= undef
1043 1 125 $$this{'_Selection'} ||= undef
1044 0 126 $$this{'_SortOrder'} ||= undef
1046 50 76 $$this{'_SortSpecs'} ||= {}
1047 50 76 $$this{'_SRoutines'} ||= {}
1051 0 126 $$this{'_ErrorMsg'} ||= ''
1052 0 126 $$this{'_Subset'} ||= 0
1053 1 125 $$this{'_IgnoreQuotes'} ||= 0
2636 6 0 $Vals ||= []
3517 0 0 $$SortSpecs{'_RecNum'} ||= {'SortType', '_RecNum', 'SortDirection', 1}
3534 10 0 max(min(int $DefaultSortDirection, 1), -1) || -1
3863 1 0 max(min(int $DefaultSortDir, 1), -1) || -1
4080 2 0 $$this{'_SRoutines'} ||= {}
4085 2 0 $$this{'_SRoutines'} ||= {}
4914 4 15 $GettingSubset || 0
4916 0 19 $IgnoreQuotes || 0
5045 10 6 @$OmitFields && 1 || 0
5492 0 0 $$this{'_Subset'} || 0
5869 0 0 $Dest ||= \*STDOUT
5902 0 0 $SortSpecs ||= {}
5904 0 0 $MaxRecords ||= 0
5905 0 0 $MaxWidth ||= 15
6242 72 0 $$this{$_} ||= []
6339 10 0 $$this{'_SRoutines'} || {}
6340 10 0 $$that{'_SRoutines'} || {}
6361 1 1 $Params ||= {}
6511 6 0 $$this{'_SRoutines'} || {}
6512 6 0 $$that{'_SRoutines'} || {}
6533 5 0 $Params ||= {}
6676 5 0 $$this{'_SRoutines'} || {}
6677 5 0 $$that{'_SRoutines'} || {}
6698 0 0 $Params ||= {}
7706 19 0 ($String =~ /([,\t])/)[0] || ','

or 3 conditions

line l !l&&r !l&&!r condition
937 0 126 0 ref $ClassOrObj || $ClassOrObj
1207 781 39 0 $$this{'_FieldList'} || $this->fieldlist_default
1216 32 81 0 $FieldList ||= $this->fieldlist
1276 33 0 0 $FieldList ||= $this->fieldlist
1473 1430 28 0 $$this{$ColName} || $this->col_add($ColName)
1578 28 5 0 $ColNames ||= $this->fieldlist
1588 14 11 0 $ColNames ||= $this->fieldlist
1601 6 18 0 $FieldList ||= $this->fieldlist_all
1618 0 8 0 $FieldList ||= $this->fieldlist
1843 0 8 0 $Fields ||= $this->fieldlist
2145 0 3 0 $Recs ||= $main::_t->selection
2146 0 3 0 $Fields ||= $main::_t->fieldlist_all
2532 0 0 5 $Old < 0 or $Old > $Length - 1
2533 0 0 5 $New < 0 or $New > $Length
2621 3 15 0 $Fields ||= $this->fieldlist
2633 3 3 0 $Fields ||= $this->fieldlist
2864 156 322 0 $$this{'_Selection'} || $this->selection_default
2989 34 284 0 $Selection ||= $this->selection
3034 55 1 0 $ColNames ||= $this->fieldlist
3044 1 3 0 $ColNames ||= $this->fieldlist
3321 0 0 0 $$Pseudo{'_RecNum'} ||= $this->all
3322 0 0 0 $$Pseudo{'_SelNum'} ||= $this->selnum_mask
3325 36 0 0 $$this{$Field} or $$Pseudo{$Field}
3357 6 3 4 $Not || $Add
3552 14 0 0 $$SRoutines{$_} or $$SRoutines{'String'}
3591 0 0 58 $ShowedProgress ||= $Did
3683 4 4 0 $$this{'_SortOrder'} || $this->sortorder_default
3782 46 0 0 $$this{'_SortSpecs'} || $this->sortspecs_default
3805 4 0 0 $$this{'_SortSpecs'}{$FieldName} || $this->sortspec_default($FieldName)
3809 4 0 0 $$SortSpec{'SortType'} ||= $this->sorttype_default
4065 37 1 0 $$Routines{$Type} || $$Routines{'String'}
4140 1 0 0 $FieldList ||= $$this{'_FieldList'}
4141 1 0 0 $Selection ||= $$this{'_Selection'}
4161 1 0 0 $FieldList ||= $this->fieldlist
4182 50 0 0 $FieldList ||= $$this{'_FieldList'}
4183 1 0 49 $Selection ||= $$this{'_Selection'}
4301 0 0 0 $this->lineending_symbol($LineEnding) || $LineEnding
4314 19 3 0 $LineEnding ||= $$this{'_LineEnding'}
4316 22 0 0 ${$this->lineending_symbols;}{$LineEnding} || $LineEnding
4325 8 3 19 $LineEnding ||= $$this{'_LineEnding'}
4327 11 0 19 ${$this->lineending_strings;}{$LineEnding} || $LineEnding
4670 0 19 0 $LineEnding ||= guess_endings($File)
4674 15 0 4 !defined($MacRomanMap) && $LineEnding eq "\r" || $MacRomanMap
4699 0 19 0 $FDelimiter ||= guess_delimiter($_)
4781 57 0 0 $FDelimiter ||= guess_delimiter($_)
4867 0 0 57 $WroteProg ||= $Did
5046 0 10 6 $$Data{'_Subset'} ||= $GettingSubset
5472 0 0 0 $FieldList ||= $this->fieldlist
5561 0 8 0 $GotHandle or CORE::length $FileName
5565 8 0 0 $FieldList ||= $this->fieldlist
5568 0 8 0 $Selection ||= $this->selection
5596 5 0 3 !defined($MacRomanMap) && $LineEnding eq "\r" || $MacRomanMap
5654 8 0 0 $Path ||= $Cur
5792 0 0 24 $WroteProg ||= $Did
5846 8 0 0 $Path ||= $Cur
5875 0 0 0 'IO::File'->new(">$Dest") || ($this->warn("Can't open file ${Dest}: $!"), goto done)
5900 0 0 0 $FieldList ||= $this->fieldlist
5901 0 0 0 $Selection ||= $this->selection
5914 0 0 0 @{{} unless $$SortSpecs{$_};}{'SortType'} || $DefaultSortType
6266 10 0 0 defined $$this{'_FieldList'} or defined $$that{'_FieldList'}
6277 32 37 0 $$FieldOrderHash{$_} ||= keys(%$FieldOrderHash) + 1
6290 0 0 10 defined $$this{'_SortOrder'} or defined $$that{'_SortOrder'}
6300 0 0 0 $$OrderHash{$_} ||= keys(%$OrderHash) + 1
6310 1 2 7 defined $$this{'_Selection'} or defined $$that{'_Selection'}
6323 10 0 0 defined $$this{'_SortSpecs'} or defined $$that{'_SortSpecs'}
6336 10 0 0 defined $$this{'_SRoutines'} or defined $$that{'_SRoutines'}
6455 6 0 0 defined $$this{'_FieldList'} or defined $$that{'_FieldList'}
6461 12 35 0 $$FieldOrderHash{$_} ||= keys(%$FieldOrderHash) + 1
6474 0 0 6 defined $$this{'_SortOrder'} or defined $$that{'_SortOrder'}
6484 0 0 0 $$OrderHash{$_} ||= keys(%$OrderHash) + 1
6495 6 0 0 defined $$this{'_SortSpecs'} or defined $$that{'_SortSpecs'}
6508 6 0 0 defined $$this{'_SRoutines'} or defined $$that{'_SRoutines'}
6578 5 0 0 $Key2 ||= $Key1
6582 0 5 0 $Fields || $that->fieldlist
6649 21 35 0 $$FieldOrderHash{$_} ||= keys(%$FieldOrderHash) + 1
6660 5 0 0 defined $$this{'_SortSpecs'} or defined $$that{'_SortSpecs'}
6673 5 0 0 defined $$this{'_SRoutines'} or defined $$that{'_SRoutines'}
7093 214599 11 0 $LastTime || $Time
7105 0 12 214594 $SameOpAndTot && $Elapsed >= 2 || $SameOpAndTot && $Finished || !$SameOpAndTot
7442 68 2 0 $FileName ||= $$this{'_FileName'}
7443 68 2 0 $CacheExtension ||= $$this{'_CacheExtension'}
7444 0 70 0 $CacheSubDir ||= $$this{'_CacheSubDir'}
7495 68 2 0 $this->try_file_read($CacheFilePath) or $this->try_file_write($CacheFilePath)
7510 78 0 0 $Sep ||= ${$this->path_info;}{'sep'}