Condition Coverage

blib/lib/Catmandu/BagIt.pm
Criterion Covered Total %
condition 33 58 56.9


and 3 conditions

line !l l&&!r l&&r condition
290 10 13 1 defined $self->path and $path ne $self->path
10 0 13 defined $self->path and $path eq $self->path
5 1 4 $opts{'overwrite'} and -d $path
439 0 0 22 defined $filename and defined $data
467 17 1 1 is_string($opts{'md5'}) and not $opts{'md5'} =~ /^[0-9a-f]{32}$/
544 0 0 4 defined $url and $size =~ /^[0-9]+$/
0 0 4 defined $url and $size =~ /^[0-9]+$/ and defined $filename
586 0 0 1 defined $fetch and ref $fetch
0 0 1 defined $fetch and ref $fetch and ref($fetch) =~ /^Catmandu::BagIt::Fetch/
615 0 0 188 defined $name and defined $values
730 0 0 10 $self->version and $self->version =~ /^[0-9]+\.[0-9]+$/
735 0 0 10 $self->encoding and $self->encoding eq 'UTF-8'
763 1 0 9 $self->errors == 0 and @missing == 0
777 0 0 74 defined $path and -d $path
1226 0 20 3 defined $fetch_str and length $fetch_str

or 2 conditions

line l !l condition
678 1 446 $join //= '; '
715 64 0 $self->list_fetch // 0
724 9 1 $self->path || ''
743 42 0 $_->{'filename'} || ''
837 77 0 $self->_error // []

or 3 conditions

line l !l&&r !l&&!r condition
418 24 2 0 $path //= $self->path