Condition Coverage

blib/lib/Palm/Keyring.pm
Criterion Covered Total %
condition 14 173 8.0


and 3 conditions

line !l l&&!r l&&r condition
135 0 0 19 defined $crypt && length $crypt
357 0 0 0 $pass and not $self->Password($pass)
431 0 0 0 $old and %{$old;}
439 0 0 0 exists $$new{'lastchange'} and exists $$old{'lastchange'}
0 0 0 exists $$new{'lastchange'} and exists $$old{'lastchange'} and $$new{'lastchange'}{'day'} != $$old{'lastchange'}{'day'} || $$new{'lastchange'}{'month'} != $$old{'lastchange'}{'month'} || $$new{'lastchange'}{'year'} != $$old{'lastchange'}{'year'}
459 0 0 0 $$new{'lastchange'} and not $need_newdate
505 0 0 0 $$new[$i]{'label_id'} and $$new[$i]{'label_id'} == 3
0 0 0 $$new[$i]{'label'} and $$new[$i]{'label'} eq 'lastchange'
0 0 0 $old and $#{$new;} == $#{$old;}
510 0 0 0 $old and $#{$new;} == $#{$old;}
0 0 0 $old and $#{$new;} == $#{$old;} and $$new[$i]{'data'}{'day'} != $$old[$i]{'data'}{'day'} || $$new[$i]{'data'}{'month'} != $$old[$i]{'data'}{'month'} || $$new[$i]{'data'}{'year'} != $$old[$i]{'data'}{'year'}
529 0 0 0 $old and not @{$old;}
0 0 0 $old and not @{$old;} and $date_index
609 3 0 0 $pass and not $self->Password($pass)
735 1 0 0 $$self{'version'} == 4 and not exists $$self{'records'}
0 1 0 $$self{'version'} == 5 and not exists $$self{'appinfo'}{'masterhash'}
753 0 0 0 $$self{'version'} == 4 and $i == 0
770 0 0 0 $$self{'version'} == 4 and $i == 0
780 1 0 0 defined $$self{'password'} and $pass eq $$self{'password'}
1087 12 5 3 $label and $label == 3
1114 0 0 0 defined $$field{'label'} and not $label
1120 0 0 0 $label and $label == 3
1183 0 0 0 defined $maxlines and $offset >= $maxlines * 16
1208 0 0 0 defined $maxlines and $offset >= $maxlines * 8

or 2 conditions

line l !l condition
102 0 0 $$options{'version'} || 4
109 0 0 $$self{'options'}{'cipher'} ||= 0
460 0 0 $$new{'lastchange'}{'day'} || 1
461 0 0 $$new{'lastchange'}{'month'} || 0
462 0 0 $$new{'lastchange'}{'year'} || 0
895 0 0 shift() || 0
1113 0 0 $$field{'label_id'} || 0
1117 0 0 $$field{'font'} || 0
1150 3 0 $month || 0
3 0 $day || 1

or 3 conditions

line l !l&&r !l&&!r condition
112 0 0 0 $$self{'options'}{'iterations'} ||= $$c{'default_iter'}
113 0 0 0 $$self{'appinfo'}{'cipher'} ||= $$self{'options'}{'cipher'}
114 0 0 0 $$self{'appinfo'}{'iter'} ||= $$self{'options'}{'iterations'}
342 0 0 0 shift() || $$self{'password'}
345 0 0 0 $pass or $$self{'appinfo'}{'key'}
368 0 0 0 $$self{'digest'} ||= _calc_keys($pass)
370 0 0 0 $$rec{'name'} ||= $$data{'name'}
375 0 0 0 $$rec{'name'} ||= $$data{'name'}
425 0 0 0 $$new{'account'} ||= $EMPTY
426 0 0 0 $$new{'password'} ||= $EMPTY
427 0 0 0 $$new{'notes'} ||= $EMPTY
439 0 0 0 $$new{'lastchange'}{'day'} != $$old{'lastchange'}{'day'} || $$new{'lastchange'}{'month'} != $$old{'lastchange'}{'month'} || $$new{'lastchange'}{'year'} != $$old{'lastchange'}{'year'}
505 0 0 0 $$new[$i]{'label_id'} and $$new[$i]{'label_id'} == 3 or $$new[$i]{'label'} and $$new[$i]{'label'} eq 'lastchange'
510 0 0 0 $$new[$i]{'data'}{'day'} != $$old[$i]{'data'}{'day'} || $$new[$i]{'data'}{'month'} != $$old[$i]{'data'}{'month'} || $$new[$i]{'data'}{'year'} != $$old[$i]{'data'}{'year'}
535 0 0 0 $need_newdate or not defined $date_index
563 0 0 0 $$c{'name'} eq 'DES_EDE3' or $$c{'name'} eq 'Rijndael'
599 0 0 3 shift() || $$self{'password'}
601 0 0 3 $pass or $$self{'appinfo'}{'key'}
618 0 0 0 $$self{'digest'} ||= _calc_keys($pass)
620 0 0 0 $$acct{'name'} ||= $$rec{'name'}
633 0 0 0 $acct{'name'} ||= $$rec{'name'}
679 0 0 0 $$c{'name'} eq 'DES_EDE3' or $$c{'name'} eq 'Rijndael'
735 0 0 1 $$self{'version'} == 4 and not exists $$self{'records'} or $$self{'version'} == 5 and not exists $$self{'appinfo'}{'masterhash'}
893 0 0 0 shift() || $$self{'appinfo'}{'cipher'}
894 0 0 0 shift() || $$self{'appinfo'}{'iter'}
949 0 0 0 shift() || pack('C*', map({rand 256;} 1 .. $length))
1092 20 0 0 $labels[$label] || $label