Condition Coverage

blib/lib/Crypt/MagicSignatures/Envelope.pm
Criterion Covered Total %
condition 36 41 87.8


and 3 conditions

line !l l&&!r l&&r condition
38 7 2 1 $param{'alg'} and uc $param{'alg'} ne 'RSA-SHA256'
45 6 2 1 $param{'encoding'} and lc $param{'encoding'} ne 'base64url'
137 0 11 2 $temp = $env->at('alg') and uc $temp->text ne 'RSA-SHA256'
144 0 10 1 $temp = $env->at('encoding') and lc $temp->text ne 'base64url'
348 1 7 14 ref $_ && ref $_ eq 'ARRAY'
439 1 1 1 $sig->{'key_id'} and $sig->{'key_id'} eq $_[1]
606 5 21 0 ref $key and $key eq 'HASH'

or 2 conditions

line l !l condition
74 1 1 $self->{'sigs'} //= []
249 72 1 +(shift())->{'data'} // ''
267 17 6 +(shift())->{'data_type'} // 'text/plain'
547 0 2 b64url_encode($sig->{'key_id'}) || ''

or 3 conditions

line l !l&&r !l&&!r condition
108 1 1 15 not $env or $env->namespace ne $ME_NS
367 7 6 7 $flag eq '-data' or $flag eq '-compatible'
594 8 6 12 $_[-1] eq '-data' or $_[-1] eq '-compatible'
14 0 12 $_[-1] eq '-data' or $_[-1] eq '-compatible' or $_[-1] eq '-base'