Branch Coverage

blib/lib/HTML/EditableTable.pm
Criterion Covered Total %
branch 0 350 0.0


line true false branch
323 0 0 if ($initData)
324 0 0 if (ref $initData ne 'HASH')
342 0 0 if (exists $$initData{'data'})
343 0 0 if (exists $$initData{'tableFields'})
344 0 0 if (exists $$initData{'editMode'})
345 0 0 if (exists $$initData{'sortHeader'})
346 0 0 if (exists $$initData{'jsSortHeader'})
347 0 0 if (exists $$initData{'sortData'})
348 0 0 if (exists $$initData{'tabindex'})
349 0 0 if (exists $$initData{'title'})
350 0 0 if (exists $$initData{'tableId'})
351 0 0 if (exists $$initData{'width'})
352 0 0 if (exists $$initData{'style'})
353 0 0 if (exists $$initData{'jsAddData'})
354 0 0 if (exists $$initData{'noheader'})
355 0 0 if (exists $$initData{'rowspannedEdit'})
356 0 0 if (exists $$initData{'sortOrder'})
357 0 0 if (exists $$initData{'border'})
358 0 0 if (exists $$initData{'suppressUndefinedFields'})
359 0 0 if (exists $$initData{'calendarDir'})
360 0 0 if (exists $$initData{'validateTableFieldKeys'})
361 0 0 if (exists $$initData{'stringOutput'})
365 0 0 if (scalar @remainingInitKeys)
373 0 0 if (exists($$self{'sortOrder'}) + exists($$self{'sortHeader'}) + exists($$self{'jsSortHeader'}) > 1)
403 0 0 if ($validTableFieldKeys{$key}) { }
430 0 0 if ($$self{$paramName}) { }
445 0 0 unless (defined $tableId)
510 0 0 unless (ref $data eq 'ARRAY' or ref $data eq 'HASH')
549 0 0 unless (ref $tableFields eq 'ARRAY')
552 0 0 if (scalar @$tableFields)
553 0 0 unless (ref $$tableFields[0] eq 'HASH')
559 0 0 if ($$self{'validateTableFieldKeys'})
562 0 0 unless ($self->isValidTableFieldKey($key))
595 0 0 unless ($editMode eq 'edit' or $editMode eq 'view')
629 0 0 if (ref $sortHeader)
681 0 0 if (ref $tabindex ne 'SCALAR')
698 0 0 if (ref $title)
715 0 0 if (ref $width or not $width =~ /\d+/)
732 0 0 if (ref $border or not $border =~ /\d+/)
747 0 0 if (ref $style)
814 0 0 if (ref($sortOrder ne 'ARRAY'))
878 0 0 if ($$self{'stringOutput'} and not $$self{'stdoutRerouted'})
880 0 0 unless open TMPOUT, '>&', \*STDOUT
882 0 0 unless open STDOUT, '>', \$stdout
894 0 0 unless ($$self{'data'})
895 0 0 unless ($$self{'tableFields'})
896 0 0 unless ($$self{'editMode'})
900 0 0 if ($$self{'jsAddData'})
908 0 0 if (CGI::param('orderByAsc') and $$self{'sortData'}) { }
0 0 elsif (CGI::param('orderByDesc') and $$self{'sortData'}) { }
924 0 0 if ($$self{'stringOutput'})
953 0 0 if ($$colSpec{$colSpecField} eq $colSpecValue)
980 0 0 if ($$colSpec{'dbfield'} eq $dbfield)
1019 0 0 if (ref $colSpec ne 'HASH')
1037 0 0 unless ($javascript->isa('HTML::EditableTable::Javascript'))
1055 0 0 if (not $$self{'javascriptDisplayed'})
1060 0 0 if ($$self{'stringOutput'} and not $$self{'stdoutRerouted'})
1062 0 0 unless open TMPOUT, '>&', \*STDOUT
1064 0 0 unless open STDOUT, '>', \$stdout
1071 0 0 unless ($$self{'javascript'})
1079 0 0 if ($$self{'stringOutput'})
1102 0 0 if ($$self{'javascript'})
1119 0 0 unless ($val =~ /^1|true|0|false$/)
1120 0 0 if ($val eq 'false') { }
0 0 elsif ($val eq 'true') { }
1143 0 0 if exists $$colSpec{'viewOnly'}
1147 0 0 if (exists $$colSpec{'callback'} and not $$colSpec{'dbfield'}) { }
0 0 elsif (not exists $$colSpec{'formElement'}) { }
1151 0 0 unless ($fp)
1165 0 0 if (exists $$colSpec{'rowspanArrayKey'})
1170 0 0 if (defined $formElm)
1172 0 0 if ($formElm eq 'textfield') { }
0 0 elsif ($formElm eq 'textarea') { }
0 0 elsif ($formElm eq 'popup') { }
0 0 elsif ($formElm eq 'scrollingList') { }
0 0 elsif ($formElm eq 'deleteRowButton') { }
0 0 elsif ($$colSpec{'formElement'} eq 'html5Calendar') { }
0 0 elsif ($$colSpec{'formElement'} eq 'checkbox') { }
0 0 elsif ($$colSpec{'formElement'} eq 'calendar') { }
1181 0 0 if (exists $$colSpec{'selectionLabels'}) { }
1191 0 0 if ($selectionCount > 8)
1193 0 0 if (exists $$colSpec{'selectionLabels'}) { }
1209 0 0 if ($$colSpec{'checkBehavior'} eq 'checked')
1272 0 0 if (exists $$self{'border'}) { }
1279 0 0 if (exists $$self{'width'})
1283 0 0 if (exists $$self{'style'})
1287 0 0 if (exists $$self{'jsAddData'})
1292 0 0 if (exists $$self{'jsSortHeader'})
1315 0 0 if (ref $row ne 'HASH')
1321 0 0 if (exists $$self{'tabindex'})
1329 0 0 if exists $$colSpec{'viewOnly'} and $editMode eq 'edit'
1330 0 0 if exists $$colSpec{'editOnly'} and $editMode eq 'view'
1339 0 0 if (exists $$colSpec{'callback'} and not $editMode eq 'edit' && exists $$colSpec{'suppressCallbackOnEdit'}) { }
1342 0 0 unless ($fp)
1348 0 0 if (exists $$colSpec{'dbfield'}) { }
1360 0 0 if (exists $$colSpec{'align'})
1363 0 0 if (exists $$colSpec{'width'})
1367 0 0 if ($$colSpec{'bgcolor'})
1375 0 0 if ($editMode eq 'edit' and not $$self{'rowspannedEdit'} and $rowspanSubcount and exists $$colSpec{'rowspanArrayKey'}) { }
0 0 elsif ($editMode eq 'edit' and not $$self{'rowspannedEdit'} and $rowspanSubcount > 1) { }
0 0 elsif ($rowspanSubcount > 1 and $rowspanSubcounter == 0 and not exists $$colSpec{'rowspanArrayKey'}) { }
0 0 elsif ($rowspanSubcount > 1 and not exists $$colSpec{'rowspanArrayKey'}) { }
0 0 elsif ($rowspanSubcount and exists $$colSpec{'rowspanArrayKey'}) { }
0 0 elsif (not exists $$colSpec{'rowspanArrayKey'}) { }
1400 0 0 unless (exists $$colSpec{'callback'} and defined $cellValue)
1408 0 0 if (exists $$colSpec{'styleHandler'}) { }
0 0 elsif (exists $$colSpec{'style'}) { }
1410 0 0 unless ($handler)
1420 0 0 if (exists $$colSpec{'styleHandler'}) { }
0 0 elsif (exists $$colSpec{'style'}) { }
1422 0 0 unless ($handler)
1432 0 0 unless (defined $cellValue)
1433 0 0 if (exists $$colSpec{'default'})
1442 0 0 if (exists $$colSpec{'modeModifier'})
1444 0 0 unless ($fp)
1448 0 0 if ($$self{'vtableFirstColumn'})
1450 0 0 if (not exists $$colSpec{'label'}) { }
1457 0 0 if ($editMode eq 'edit' and (exists $$colSpec{'required'} and $$colSpec{'required'}))
1461 0 0 if ($$colSpec{'tooltip'}) { }
1465 0 0 if ($$colSpec{'sidebarWidth'})
1475 0 0 if ($$colSpec{'sidebarWidth'})
1480 0 0 if ($$colSpec{'label'})
1492 0 0 if ($editMode eq 'edit' and exists $$colSpec{'formElement'}) { }
0 0 elsif (exists $$colSpec{'htmlSub'}) { }
1495 0 0 if (not $cellValue and exists $$colSpec{'formElementOnNull'})
1499 0 0 if (exists $$colSpec{'rowspanArrayKey'})
1503 0 0 if (exists $$colSpec{'uniquifierField'})
1507 0 0 if (ref $$colSpec{'uniquifierField'}) { }
1509 0 0 unless (exists $$row{$uniquifier})
1514 0 0 unless (exists $$row{$$colSpec{'uniquifierField'}})
1519 0 0 if (ref $$colSpec{'rowspanArrayUniquifier'}) { }
1521 0 0 if (exists $$colSpec{'rowspanArrayKeyForUniquification'}) { }
0 0 elsif (exists $$colSpec{'dbfield'}) { }
1533 0 0 if (exists $$colSpec{'rowspanArrayUniquifier'} and exists $$colSpec{'rowspanArrayKeyForUniquification'}) { }
0 0 elsif (exists $$colSpec{'rowspanArrayUniquifier'}) { }
1542 0 0 if (exists $$colSpec{'masterCounterUniquify'})
1546 0 0 if ($$colSpec{'formElement'} eq 'popup') { }
0 0 elsif ($$colSpec{'formElement'} eq 'scrollingList') { }
0 0 elsif ($$colSpec{'formElement'} eq 'textfield') { }
0 0 elsif ($$colSpec{'formElement'} eq 'textarea') { }
0 0 elsif ($$colSpec{'formElement'} eq 'checkbox') { }
0 0 elsif ($$colSpec{'formElement'} eq 'hidden') { }
0 0 elsif ($$colSpec{'formElement'} eq 'html5Calendar') { }
0 0 elsif ($$colSpec{'formElement'} eq 'calendar') { }
0 0 elsif ($$colSpec{'formElement'} eq 'deleteRowButton') { }
1552 0 0 if (exists $$colSpec{'editOnlyOnNegativeValue'} and $cellValue > 0)
1556 0 0 if (exists $$colSpec{'selectionListCallback'}) { }
0 0 elsif (exists $$colSpec{'selectionLabels'}) { }
1565 0 0 if ($disabled) { }
1573 0 0 if ($disabled)
1585 0 0 if ($selectionCount > 8)
1590 0 0 if (exists $$colSpec{'selectionLabels'}) { }
1602 0 0 if ($$colSpec{'subBr'}) { }
0 0 elsif ($$colSpec{'subCommaForBr'}) { }
1611 0 0 if (exists $$colSpec{'size'}) { }
0 0 elsif (exists $$colSpec{'minimalEditSize'}) { }
1616 0 0 if ($size < 10)
1620 0 0 if ($size < 60)
1623 0 0 if ($$colSpec{'maxlength'})
1630 0 0 if ($$colSpec{'minimalEditSize'})
1632 0 0 if ($rows < 4)
1640 0 0 if ($$colSpec{'checkBehavior'} eq 'checkedOnVal') { }
0 0 elsif ($$colSpec{'checkBehavior'} eq 'checkedOnTrue') { }
0 0 elsif ($$colSpec{'checkBehavior'} eq 'checked') { }
0 0 elsif ($$colSpec{'checkBehavior'}) { }
1641 0 0 if ($default)
1644 0 0 if ($default =~ /^1|yes|true$/i)
1653 0 0 if ($default) { }
1685 0 0 if ($cellValue) { }
1735 0 0 if (exists $$colSpec{'selectionList'} and exists $$colSpec{'selectionLabels'}) { }
1745 0 0 if ($$colSpec{'subBr'})
1751 0 0 if ($$colSpec{'linkifyContentOnView'})
1765 0 0 if ($$colSpec{'subBr'})
1771 0 0 if ($$colSpec{'drillDownTruncate'} and length $content > $$colSpec{'drillDownTruncate'}) { }
1786 0 0 unless (defined $content)