Branch Coverage

File:Dpkg/Control/FieldsCore.pm
Coverage:52.0%

line%coveragebranch
1055100TFif exists $FIELDS{$field}
1090100TFunless exists $FIELDS{$field}
109250TFunless scalar @types
109450TFif $type == 0
1095100TFunless $FIELDS{$field}{'allowed'} & $type
112250TFunless (defined $field)
1131100TFif (&field_is_allowed_in($field, $from_type, $to_type)) { }
50TFelsif ($field =~ /^X([SBC]*)-/i) { }
0TFelsif (not &field_is_allowed_in($field, $from_type)) { }
113650TFif ($dest =~ /B/i and $to_type == 32 or $dest =~ /S/i and $to_type == 16 or $dest =~ /C/i and $to_type == 64) { }
50TFelsif ($to_type != 32 and $to_type != 16 and $to_type != 64) { }
11720TFif $res and defined wantarray
118850TFif (exists $FIELD_ORDER{$type})
12120TFif ($ctrl_type != 8 and $ctrl_type != 32 and $ctrl_type != 64 and $ctrl_type != 32768 and $ctrl_type != 256)
1224100TFif (exists $ctrl->{'Source'}) { }
1226100TFif ($source =~ /^([^ ]+) +\(([^)]*)\)$/) { }
1255100TFif &field_is_allowed_in($_, 16)
1275100TFif &field_is_allowed_in($_, 32)
12910TFunless exists $FIELDS{$field}
12920TFif exists $FIELDS{$field}{'dependency'}
13060TFif exists $FIELDS{$field}{'separator'}
134250TFunless exists $FIELD_ORDER{$type}
1346100TF$_ eq $field ? :
13640TFunless exists $FIELD_ORDER{$type}
13680TF$_ eq $field ? :