Condition Coverage

blib/lib/WWW/Suffit/RSA.pm
Criterion Covered Total %
condition 10 38 26.3


and 2 conditions

line l !l condition
166 0 0 $self->error("The text for encrypting is not specified") and return
170 0 0 $self->error("Public key not specified") and return
185 0 0 $self->error("The ciphertext for decryption is not specified") and return
189 0 0 $self->error("Private key not specified") and return
210 0 0 $self->error("Private key not specified") and return
220 0 0 $self->error("Unsupported SHA hash size") and return
233 0 0 $self->error("Public key not specified") and return
243 0 0 $self->error("Unsupported SHA hash size") and return

or 2 conditions

line l !l condition
148 1 0 shift() || $self->key_size || 2048
169 1 0 $self->public_key // ""
188 1 0 $self->private_key // ""
194 1 0 eval { do { $rsa_priv->decrypt(&b64_decode($cipher)) } } // ""
205 1 0 $self->sha_size || 256
209 1 0 $self->private_key // ""
228 1 0 $self->sha_size || 256
232 1 0 $self->public_key // ""

or 3 conditions

line l !l&&r !l&&!r condition
205 0 1 0 $size ||= $self->sha_size || 256
228 0 1 0 $size ||= $self->sha_size || 256