Branch Coverage

File:C4/Labels/Label.pm
Coverage:13.1%

line%coveragebranch
4450TFif (scalar @_ > 1) { }
470TFif (not grep /$key/, @valid_label_params)
5450TFif (not grep /$_/, @valid_label_params)
830TFif ($sth->err)
900TFif ($sth1->err)
960TF$barcode_only ? :
103100TF$_ eq 'callnumber' ? :
10750TFif $error
125100TFunless (scalar @parts)
13050TFif $debug
14450TFunless (scalar @parts)
149100TFif ($parts[0] =~ /^([-a-zA-Z]+)\s?($possible_decimal)$/)
15550TFif $debug
167100TFif (not $parts[-1] =~ /^.*\d-\d.*$/ and $parts[-1] =~ /^(.*\d+)(\D.*)$/)
17150TFunless (scalar @parts)
17550TFif $debug
1950TFif ($f =~ /^'(.*)'.*/) { }
0TFelsif ($f =~ /^($match_kohatable).*/) { }
0TFelsif ($f =~ /^([0-9a-z]{3})(\w)(\W?).*?/) { }
2020TFif ($$item{$f}) { }
2050TFif $debug
2150TFif (@marcfield)
2160TFif ($field eq $itemtag) { }
2190TFif ($itemfield->subfield($itemsubfieldcode) eq $$item{'itemnumber'})
2200TFif ($itemfield->subfield($subf)) { }
2300TFif ($marcfield[0]->subfield($subf)) { }
2910TFif $debug
3290TFif ($$self{'guidebox'})
3430TFif (_check_params(@_) eq 1)
3470TFif (exists $$self{$attr}) { }
3640TFif ($$self{'printing_type'} =~ /BIB/)
3710TFif ($$self{'printing_type'} =~ /BAR/)
3790TFif $label_text
3940TF$$item{'cn_source'} ? :
3970TFif ($$field{'code'} eq 'itemtype') { }
3980TF'C4::Context'->preference('item-level_itypes') ? :
4030TF$font =~ /T/ ? :
0TF$$field{'code'} eq 'title' ? :
4050TFif ($field_data)
4120TFif (grep {$$field{'code'} =~ /$_/;} @callnumber_list and $$self{'printing_type'} eq 'BIB' and $$self{'callnum_split'}) { }
4130TFif ($cn_source eq 'lcc' or $cn_source eq 'nlm') { }
0TFelsif ($cn_source eq 'ddc') { }
4150TFif not @label_lines
4160TFif not @label_lines
4190TFif not @label_lines
4200TFif not @label_lines
4270TFif ($field_data)
4350TFif ($$field{'code'} eq 'title' and scalar @line >= 2) { }
4480TFif $line eq ''
4500TFif ($$self{'justify'} eq 'R') { }
0TFelsif ($$self{'justify'} eq 'C') { }
4820TFif not $params{'barcode_data'}
4830TFif not $params{'barcode_type'}
4900TFif ($params{'barcode_type'} =~ /CODE39/) { }
0TFelsif ($params{'barcode_type'} eq 'COOP2OF5') { }
0TFelsif ($params{'barcode_type'} eq 'INDUSTRIAL2OF5') { }
4940TFif ($params{'barcode_type'} eq 'CODE39MOD') { }
0TFelsif ($params{'barcode_type'} eq 'CODE39MOD10') { }
5150TFif ($@)
5330TFif ($@)
5510TFif ($@)