Condition Coverage

blib/lib/Catmandu/BagIt.pm
Criterion Covered Total %
condition 31 58 53.4


and 3 conditions

line !l l&&!r l&&r condition
306 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
465 0 0 21 defined $filename and defined $data
618 0 0 4 defined $url and $size =~ /^[0-9]+$/
0 0 4 defined $url and $size =~ /^[0-9]+$/ and defined $filename
660 0 0 1 defined $fetch and ref $fetch
0 0 1 defined $fetch and ref $fetch and ref($fetch) =~ /^Catmandu::BagIt::Fetch/
689 0 0 188 defined $name and defined $values
804 0 0 10 $self->version and $self->version =~ /^[0-9]+\.[0-9]+$/
809 0 0 10 $self->encoding and $self->encoding eq 'UTF-8'
837 1 0 9 $self->errors == 0 and @missing == 0
851 0 0 74 defined $path and -d $path
1027 0 31 0 $self->algorithm and $self->algorithm ne $algorithm
1322 0 20 3 defined $fetch_str and length $fetch_str

or 2 conditions

line l !l condition
752 1 446 $join //= '; '
789 64 0 $self->list_fetch // 0
798 9 1 $self->path || ''
817 42 0 $_->{'filename'} || ''
911 76 0 $self->_error // []

or 3 conditions

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