Condition Coverage

blib/lib/Data/CTable.pm
Criterion Covered Total %
condition 205 416 49.2


and 3 conditions

line !l l&&!r l&&r condition
1496 15 0 1 not $Valid and $Existing
0 4 11 $Valid and not $Existing
1645 0 0 0 $Old ne $New && $this->warn("Failed to rename column $Old to ${New}: $New exists.")
1657 0 3 0 defined $$this{'_SortSpecs'} and $$this{'_SortSpecs'}{$Old}
2521 0 0 8 defined $Old and defined $New
2602 3 5 6 $Num >= 0 && $Num < $this->length
3001 2 0 3 defined $Vector and ref $Vector eq 'ARRAY'
3314 0 0 13 CORE::length $Field and ref $Sub eq 'CODE'
3355 6 0 3 not $Not and $Add
0 1 5 $Not and not $Add
0 0 1 $Not and $Add
3500 0 0 10 ref $SortOrder eq 'ARRAY' and @$SortOrder
3526 0 0 10 CORE::length $DefaultSortType and exists $$SRoutines{$DefaultSortType}
3668 5 1 2 ref $SortOrder eq 'ARRAY' && @$SortOrder > 0
3671 5 1 2 defined $SortOrder and $Valid
4673 14 0 5 ref $FieldList eq 'ARRAY' && @$FieldList
4739 14 1 4 $FieldListValid && "@{[sort(@$IncomingFields)];}" ne "@{[sort(@$FieldList)];}"
4815 57 0 0 $MaxRecords and $RecordsRead >= $MaxRecords
4828 57 0 0 $RecordsRead % 100 == 0 and $RecordsRead + 100 > $#{$$FieldVectors[$$FieldNums[0]];}
4833 0 0 0 $MaxRecords and $MaxRecords < $EstTotalRecords
4964 0 2 49 -e $FileName and -e $CacheFileName
2 3 46 -e $FileName and -e $CacheFileName and (stat $CacheFileName)[9] > (stat $FileName)[9]
4989 28 0 18 ref $FieldList eq 'ARRAY' and @$FieldList
5624 0 8 0 -e $WriteFileName and not -w $WriteFileName
5693 0 33 0 $QuoteCheck and $X =~ /$QuoteOrDelimCheck/
5731 0 99 0 $QuoteCheck and $X =~ /$QuoteOrDelimCheck/
7059 12 0 188147 $SameOp && $Tot == $LastTot
7060 10 188147 2 $Tot && $Pos == $Tot
7073 10 0 7 defined $Pos and $Tot
7078 5 1 11 not $SameOp and $Wait

or 2 conditions

line l !l condition
1007 50 59 $$this{'_FileName'} ||= undef
1020 50 59 $$this{'_LineEnding'} ||= undef
1021 50 59 $$this{'_FDelimiter'} ||= undef
1028 50 59 $$this{'_ReturnEncoding'} ||= "\cK"
1033 50 59 $$this{'_DefaultSortType'} ||= 'String'
1034 50 59 $$this{'_DefaultSortDirection'} ||= 1
1042 66 43 $$this{'_FieldList'} ||= undef
1043 1 108 $$this{'_Selection'} ||= undef
1044 0 109 $$this{'_SortOrder'} ||= undef
1046 50 59 $$this{'_SortSpecs'} ||= {}
1047 50 59 $$this{'_SRoutines'} ||= {}
1051 0 109 $$this{'_ErrorMsg'} ||= ''
1052 0 109 $$this{'_Subset'} ||= 0
2634 6 0 $Vals ||= []
3515 0 0 $$SortSpecs{'_RecNum'} ||= {'SortType', '_RecNum', 'SortDirection', 1}
3532 10 0 max(min(int $DefaultSortDirection, 1), -1) || -1
3861 1 0 max(min(int $DefaultSortDir, 1), -1) || -1
4078 2 0 $$this{'_SRoutines'} ||= {}
4083 2 0 $$this{'_SRoutines'} ||= {}
4897 4 15 $GettingSubset || 0
5023 10 6 @$OmitFields && 1 || 0
5456 0 0 $$this{'_Subset'} || 0
5829 0 0 $Dest ||= \*STDOUT
5862 0 0 $SortSpecs ||= {}
5864 0 0 $MaxRecords ||= 0
5865 0 0 $MaxWidth ||= 15
6202 72 0 $$this{$_} ||= []
6299 10 0 $$this{'_SRoutines'} || {}
6300 10 0 $$that{'_SRoutines'} || {}
6321 1 1 $Params ||= {}
6471 6 0 $$this{'_SRoutines'} || {}
6472 6 0 $$that{'_SRoutines'} || {}
6493 5 0 $Params ||= {}
6636 5 0 $$this{'_SRoutines'} || {}
6637 5 0 $$that{'_SRoutines'} || {}
6658 0 0 $Params ||= {}
7551 19 0 ($String =~ /([,\t])/)[0] || ','

or 3 conditions

line l !l&&r !l&&!r condition
937 0 109 0 ref $ClassOrObj || $ClassOrObj
1206 766 39 0 $$this{'_FieldList'} || $this->fieldlist_default
1215 32 64 0 $FieldList ||= $this->fieldlist
1275 33 0 0 $FieldList ||= $this->fieldlist
1472 1447 28 0 $$this{$ColName} || $this->col_add($ColName)
1577 28 5 0 $ColNames ||= $this->fieldlist
1587 14 11 0 $ColNames ||= $this->fieldlist
1600 6 18 0 $FieldList ||= $this->fieldlist_all
1617 0 8 0 $FieldList ||= $this->fieldlist
1842 0 8 0 $Fields ||= $this->fieldlist
2143 0 3 0 $Recs ||= $main::_t->selection
2144 0 3 0 $Fields ||= $main::_t->fieldlist_all
2530 0 0 5 $Old < 0 or $Old > $Length - 1
2531 0 0 5 $New < 0 or $New > $Length
2619 3 16 0 $Fields ||= $this->fieldlist
2631 3 3 0 $Fields ||= $this->fieldlist
2862 156 322 0 $$this{'_Selection'} || $this->selection_default
2987 34 284 0 $Selection ||= $this->selection
3032 55 1 0 $ColNames ||= $this->fieldlist
3042 1 3 0 $ColNames ||= $this->fieldlist
3319 0 0 0 $$Pseudo{'_RecNum'} ||= $this->all
3320 0 0 0 $$Pseudo{'_SelNum'} ||= $this->selnum_mask
3323 36 0 0 $$this{$Field} or $$Pseudo{$Field}
3355 6 3 4 $Not || $Add
3550 14 0 0 $$SRoutines{$_} or $$SRoutines{'String'}
3589 0 0 58 $ShowedProgress ||= $Did
3681 4 4 0 $$this{'_SortOrder'} || $this->sortorder_default
3780 46 0 0 $$this{'_SortSpecs'} || $this->sortspecs_default
3803 4 0 0 $$this{'_SortSpecs'}{$FieldName} || $this->sortspec_default($FieldName)
3807 4 0 0 $$SortSpec{'SortType'} ||= $this->sorttype_default
4063 37 1 0 $$Routines{$Type} || $$Routines{'String'}
4138 1 0 0 $FieldList ||= $$this{'_FieldList'}
4139 1 0 0 $Selection ||= $$this{'_Selection'}
4159 1 0 0 $FieldList ||= $this->fieldlist
4180 50 0 0 $FieldList ||= $$this{'_FieldList'}
4181 1 0 49 $Selection ||= $$this{'_Selection'}
4299 0 0 0 $this->lineending_symbol($LineEnding) || $LineEnding
4312 19 3 0 $LineEnding ||= $$this{'_LineEnding'}
4314 22 0 0 ${$this->lineending_symbols;}{$LineEnding} || $LineEnding
4323 8 3 19 $LineEnding ||= $$this{'_LineEnding'}
4325 11 0 19 ${$this->lineending_strings;}{$LineEnding} || $LineEnding
4662 0 19 0 $LineEnding ||= guess_endings($File)
4666 15 0 4 !defined($MacRomanMap) && $LineEnding eq "\r" || $MacRomanMap
4691 0 19 0 $FDelimiter ||= guess_delimiter($_)
4770 57 0 0 $FDelimiter ||= guess_delimiter($_)
4850 0 0 57 $WroteProg ||= $Did
5024 0 10 6 $$Data{'_Subset'} ||= $GettingSubset
5436 0 0 0 $FieldList ||= $this->fieldlist
5521 0 8 0 $GotHandle or CORE::length $FileName
5525 8 0 0 $FieldList ||= $this->fieldlist
5528 0 8 0 $Selection ||= $this->selection
5556 5 0 3 !defined($MacRomanMap) && $LineEnding eq "\r" || $MacRomanMap
5614 8 0 0 $Path ||= $Cur
5752 0 0 24 $WroteProg ||= $Did
5806 8 0 0 $Path ||= $Cur
5835 0 0 0 'IO::File'->new(">$Dest") || ($this->warn("Can't open file ${Dest}: $!"), goto done)
5860 0 0 0 $FieldList ||= $this->fieldlist
5861 0 0 0 $Selection ||= $this->selection
5874 0 0 0 @{{} unless $$SortSpecs{$_};}{'SortType'} || $DefaultSortType
6226 10 0 0 defined $$this{'_FieldList'} or defined $$that{'_FieldList'}
6237 32 37 0 $$FieldOrderHash{$_} ||= keys(%$FieldOrderHash) + 1
6250 0 0 10 defined $$this{'_SortOrder'} or defined $$that{'_SortOrder'}
6260 0 0 0 $$OrderHash{$_} ||= keys(%$OrderHash) + 1
6270 1 2 7 defined $$this{'_Selection'} or defined $$that{'_Selection'}
6283 10 0 0 defined $$this{'_SortSpecs'} or defined $$that{'_SortSpecs'}
6296 10 0 0 defined $$this{'_SRoutines'} or defined $$that{'_SRoutines'}
6415 6 0 0 defined $$this{'_FieldList'} or defined $$that{'_FieldList'}
6421 12 35 0 $$FieldOrderHash{$_} ||= keys(%$FieldOrderHash) + 1
6434 0 0 6 defined $$this{'_SortOrder'} or defined $$that{'_SortOrder'}
6444 0 0 0 $$OrderHash{$_} ||= keys(%$OrderHash) + 1
6455 6 0 0 defined $$this{'_SortSpecs'} or defined $$that{'_SortSpecs'}
6468 6 0 0 defined $$this{'_SRoutines'} or defined $$that{'_SRoutines'}
6538 5 0 0 $Key2 ||= $Key1
6542 0 5 0 $Fields || $that->fieldlist
6609 21 35 0 $$FieldOrderHash{$_} ||= keys(%$FieldOrderHash) + 1
6620 5 0 0 defined $$this{'_SortSpecs'} or defined $$that{'_SortSpecs'}
6633 5 0 0 defined $$this{'_SRoutines'} or defined $$that{'_SRoutines'}
7053 188148 11 0 $LastTime || $Time
7065 1 12 188142 $SameOpAndTot && $Elapsed >= 2 || $SameOpAndTot && $Finished || !$SameOpAndTot
7287 51 2 0 $FileName ||= $$this{'_FileName'}
7288 51 2 0 $CacheExtension ||= $$this{'_CacheExtension'}
7289 51 2 0 $CacheSubDir ||= $$this{'_CacheSubDir'}
7340 51 2 0 $this->try_file_read($CacheFilePath) or $this->try_file_write($CacheFilePath)
7355 61 0 0 $Sep ||= ${$this->path_info;}{'sep'}