Condition Coverage

blib/lib/Image/MetaData/GQview.pm
Criterion Covered Total %
condition 16 48 33.3


and 3 conditions

line !l l&&!r l&&r condition
239 0 1 0 $newimage and not $newmetafile
257 1 0 0 $false and not $newmetafile
1 0 0 $false and not $newmetafile and $metafile ne $metadata2

or 2 conditions

line l !l condition
62 0 2 shift() || {}
304 4 0 $self->{'data'}{$field} || ''
351 5 1 $self->{'data'}{$field} || ''

or 3 conditions

line l !l&&r !l&&!r condition
60 0 2 0 ref $param || $param
98 2 0 0 shift() || $self->{'imagefile'}
103 1 0 1 -e $image or -l $image
113 0 0 0 $metafile ||= $metadata2
212 1 0 0 $image ||= $self->{'imagefile'}
213 1 0 0 $metafile ||= $self->{'metafile'}
217 1 0 0 -e $image or -l $image
251 0 0 0 -d $metadir or mkdir $metadir
267 0 0 0 -d $metadir or mkdir $metadir
300 4 0 0 shift() || croak('get_field has to be called with a field as the first parameter')
323 2 0 0 shift() || croak('set_field has to be called with a field as the first parameter')