Condition Coverage

blib/lib/Palm/Keyring.pm
Criterion Covered Total %
condition 73 152 48.0


and 3 conditions

line !l l&&!r l&&r condition
162 0 0 64 defined $crypt && length $crypt
181 0 0 80 defined $label && length $label
443 1 9 0 $pass and not $self->Password($pass)
515 0 0 3 $old and %{$old;}
524 0 0 3 exists $$new{'lastchange'} and exists $$old{'lastchange'}
0 3 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'}
544 0 1 2 $$new{'lastchange'} and not $need_newdate
595 0 0 1 $$new{$k}{'data'}{'day'} == $$old{$k}{'data'}{'day'} and $$new{$k}{'data'}{'month'} == $$old{$k}{'data'}{'month'}
0 0 1 $$new{$k}{'data'}{'day'} == $$old{$k}{'data'}{'day'} and $$new{$k}{'data'}{'month'} == $$old{$k}{'data'}{'month'} and $$new{$k}{'data'}{'year'} == $$old{$k}{'data'}{'year'}
0 1 0 $old and ($$new{$k}{'data'}{'day'} == $$old{$k}{'data'}{'day'} and $$new{$k}{'data'}{'month'} == $$old{$k}{'data'}{'month'} and $$new{$k}{'data'}{'year'} == $$old{$k}{'data'}{'year'})
688 15 9 0 $pass and not $self->Password($pass)
835 14 12 1 $$self{'version'} == 4 and not exists $$self{'encpassword'}
12 13 1 $$self{'version'} == 5 and not exists $$self{'appinfo'}{'masterhash'}
864 15 0 10 defined $$self{'password'} and $pass eq $$self{'password'}
1056 0 2 0 $pass and not $self->Password($pass)
1203 15 27 18 $label_id and $label_id == 3
1223 0 17 3 defined $$field{'label'} and not $label
1235 3 10 7 $label and $label == 3
1298 0 0 0 defined $maxlines and $offset >= $maxlines * 16
1323 0 0 0 defined $maxlines and $offset >= $maxlines * 8

or 2 conditions

line l !l condition
129 2 0 $$options{'version'} || 4
136 0 1 $$self{'options'}{'cipher'} ||= 0
545 2 0 $$new{'lastchange'}{'day'} || 1
546 2 0 $$new{'lastchange'}{'month'} || 0
547 2 0 $$new{'lastchange'}{'year'} || 0
978 0 2 shift() || 0
1222 17 3 $$field{'label_id'} || 0
1232 0 20 $$field{'font'} || 0
1265 24 0 $month || 0
24 0 $day || 1

or 3 conditions

line l !l&&r !l&&!r condition
139 0 1 0 $$self{'options'}{'iterations'} ||= $$c{'default_iter'}
140 0 0 1 $$self{'appinfo'}{'cipher'} ||= $$self{'options'}{'cipher'}
141 0 1 0 $$self{'appinfo'}{'iter'} ||= $$self{'options'}{'iterations'}
291 1 0 0 $$rec{'plaintext'}{'0'}{'data'} || $EMPTY
427 8 1 1 shift() || $$self{'password'}
428 4 6 0 shift() || $$rec{'plaintext'}
431 9 0 1 $pass or $$self{'appinfo'}{'key'}
454 3 0 0 $$self{'digest'} ||= _calc_keys($pass)
509 3 0 0 $$new{'account'} ||= $EMPTY
510 3 0 0 $$new{'password'} ||= $EMPTY
511 3 0 0 $$new{'notes'} ||= $EMPTY
524 2 0 1 $$new{'lastchange'}{'day'} != $$old{'lastchange'}{'day'} || $$new{'lastchange'}{'month'} != $$old{'lastchange'}{'month'} || $$new{'lastchange'}{'year'} != $$old{'lastchange'}{'year'}
642 0 0 0 $$c{'name'} eq 'DES_EDE3' or $$c{'name'} eq 'Rijndael'
678 5 4 17 shift() || $$self{'password'}
680 9 0 17 $pass or $$self{'appinfo'}{'key'}
698 6 0 0 $$self{'digest'} ||= _calc_keys($pass)
733 0 18 0 $$plaintext{'0'} ||= $$rec{'plaintext'}{'0'}
780 0 0 0 $$c{'name'} eq 'DES_EDE3' or $$c{'name'} eq 'Rijndael'
835 1 0 26 $$self{'version'} == 4 and not exists $$self{'encpassword'} or $$self{'version'} == 5 and not exists $$self{'appinfo'}{'masterhash'}
976 0 0 2 shift() || $$self{'appinfo'}{'cipher'}
977 0 2 0 shift() || $$self{'appinfo'}{'iter'}
1032 0 2 0 shift() || pack('C*', map({rand 256;} 1 .. $length))
1054 2 0 0 $pass ||= $$self{'password'}
1199 60 0 0 $$l{'name'} || $$l{'id'}