Branch Coverage

blib/lib/Text/Merge/Lists.pm
Criterion Covered Total %
branch 54 90 60.0


line true false branch
280 0 6 unless ($liststyles)
282 0 6 if ($cacheflag)
294 23 22 unless ($$self{'_Text_Merge_Liststyles'} and $style =~ /^(list|table\d+)\_(\w+)$/)
308 1 0 if ($ival >= 0) { }
338 0 0 wantarray ? :
0 2 unless $items and ref $items
340 0 2 if ($value and $method =~ /numeric/) { }
2 0 elsif ($value) { }
347 1 1 if ($method =~ /reverse/)
348 0 2 wantarray ? :
357 0 0 if (not $fh) { }
365 0 62 if $cache and defined($_ = $$cache{$ind})
369 0 62 if $cache
371 0 62 unless $file or $type =~ /^(?:header|footer|divider|empty|default)/i
381 1 21 if ($depth > ($$self{'_Text_Merge_Lists_MaxDepth'} || 3))
388 0 6 if $width < 1
6 15 if ($type =~ /^table(\d+)$/i)
389 0 21 unless ($style)
390 0 21 if ($cache)
392 0 0 unless $cache and $$cache{$cind}
397 6 15 if $type eq 'table'
399 0 21 unless (-d $path)
400 17 4 if ($list)
401 3 14 unless ref($list) =~ /ARRAY/
402 10 7 if (@$list) { }
403 8 2 if ($type =~ /^list$/i) { }
2 0 elsif ($type eq 'table') { }
410 7 0 if ($message)
424 8 0 if ($header)
427 17 0 if ($item and $_ = $$item{'ItemType'} || 'default')
429 0 17 unless ($stylefile)
430 17 0 if ($stylefile)
431 9 8 if $itemct++ and $divider
436 8 0 if ($footer)
448 2 0 if ($$parent{'Data'}) { }
449 2 0 if ($header)
452 8 0 if ($item and $_ = $$item{'ItemType'} || 'default')
454 0 8 unless ($stylefile)
455 8 0 if ($stylefile)
456 4 4 unless ($itemct % $width)
462 2 0 if ($itemct)
464 1 1 if ($fw and $fw = $width - $fw)
465 1 0 if ($$parent{'Data'}) { }
467 1 0 if $filler
471 2 0 if ($footer)