Condition Coverage

blib/lib/Crypt/RNCryptor/V3.pm
Criterion Covered Total %
condition 21 48 43.7


and 3 conditions

line !l l&&!r l&&r condition
36 4 7 0 $opts{'password'} and $opts{'encryption_key'} || $opts{'hmac_key'}
79 0 0 4 $self->encryption_key and $self->hmac_key
124 0 0 4 $self->encryption_key and $self->hmac_key

or 3 conditions

line l !l&&r !l&&!r condition
36 0 0 7 $opts{'encryption_key'} || $opts{'hmac_key'}
52 0 29 0 $iterations ||= $self->pbkdf2_iterations
85 5 1 0 $opts{'iv'} || 'Crypt::CBC'->random_bytes(16)
86 5 1 0 $opts{'encryption_salt'} || 'Crypt::CBC'->random_bytes(8)
87 5 1 0 $opts{'hmac_salt'} || 'Crypt::CBC'->random_bytes(8)
88 0 6 0 $opts{'password'} || $self->password
89 0 6 0 $opts{'pbkdf2_iterations'} || $self->pbkdf2_iterations
107 3 1 0 $opts{'iv'} || 'Crypt::CBC'->random_bytes(16)
108 0 4 0 $opts{'encryption_key'} || $self->encryption_key
109 0 4 0 $opts{'hmac_key'} || $self->hmac_key
130 0 6 0 $opts{'password'} || $self->password
156 0 4 0 $opts{'encryption_key'} || $self->encryption_key
157 0 4 0 $opts{'hmac_key'} || $self->hmac_key