Condition Coverage

blib/lib/Archive/BagIt.pm
Criterion Covered Total %
condition 17 39 43.5


and 3 conditions

line !l l&&!r l&&r condition
266 0 469 0 defined $internal_key && ($lc_flag && lc $internal_key eq lc $search_key || !$lc_flag && $internal_key eq $search_key)
320 0 0 198 $ret &&= $self->_if_error_push($res)
322 0 0 198 $ret &&= $self->_if_error_push($res)
332 85 112 0 $self->is_baginfo_key_reserved_as_uniq($key) and $keys{$key} > 1
336 0 0 0 $ret &&= $self->_collect_errors("Baginfo key '${key}' exists $keys{$key}, but should be uniq!")
350 0 0 0 $ret &&= $self->_collect_errors("'bag-info.txt' exists, but is not (partially) parseable!")
353 0 0 47 $ret &&= $self->_check_baginfo_keys_generically($info)
361 0 5 0 $ret &&= $self->_collect_errors("Payload-Oxum differs, calculated $octets.$streamcount but $loaded_payloadoxum was expected by bag-info.txt")
461 0 0 60 _check_key_or_croak($searchkey) and defined $newvalue
675 33 293 34 defined $excludedir and $path_entry eq $excludedir
989 17 46 0 defined $res and $res ne 1
994 15 34 0 defined $res and $res ne 1
1055 16 0 1 exists $self->{'errors'} and scalar @{$self->{'errors'};} > 0