Condition Coverage

blib/lib/Crypt/SRP.pm
Criterion Covered Total %
condition 37 120 30.8


and 3 conditions

line !l l&&!r l&&r condition
282 0 0 1 defined $Bytes_M2 and defined $M2
0 0 1 defined $Bytes_M2 and defined $M2 and $Bytes_M2 eq $M2
431 0 0 3 defined $self->{'Bytes_s'} and defined $self->{'Bytes_I'}
0 0 3 defined $self->{'Bytes_s'} and defined $self->{'Bytes_I'} and defined $self->{'Bytes_P'}
440 0 0 2 defined $self->{'Num_x'} and defined $self->{'Num_N'}
0 0 2 defined $self->{'Num_x'} and defined $self->{'Num_N'} and defined $self->{'Num_g'}
449 0 0 1 defined $self->{'Num_a'} and defined $self->{'Num_N'}
0 0 1 defined $self->{'Num_a'} and defined $self->{'Num_N'} and defined $self->{'Num_g'}
457 0 0 2 defined $self->{'Num_A'} and defined $self->{'Num_B'}
466 0 0 2 defined $self->{'Num_N'} and defined $self->{'Num_g'}
474 0 0 1 defined $self->{'Num_B'} and defined $self->{'Num_a'}
0 0 1 defined $self->{'Num_B'} and defined $self->{'Num_a'} and defined $self->{'Num_u'}
0 0 1 defined $self->{'Num_B'} and defined $self->{'Num_a'} and defined $self->{'Num_u'} and defined $self->{'Num_k'}
475 0 0 1 defined $self->{'Num_x'} and defined $self->{'Num_N'}
0 0 1 defined $self->{'Num_x'} and defined $self->{'Num_N'} and defined $self->{'Num_g'}
490 0 0 1 defined $self->{'Num_A'} and defined $self->{'Num_b'}
0 0 1 defined $self->{'Num_A'} and defined $self->{'Num_b'} and defined $self->{'Num_u'}
491 0 0 1 defined $self->{'Num_v'} and defined $self->{'Num_N'}
509 0 0 2 defined $self->{'Num_A'} and defined $self->{'Num_B'}
0 0 2 defined $self->{'Num_A'} and defined $self->{'Num_B'} and defined $self->{'Num_N'}
0 0 2 defined $self->{'Num_A'} and defined $self->{'Num_B'} and defined $self->{'Num_N'} and defined $self->{'Num_g'}
510 0 0 2 defined $self->{'Bytes_K'} and defined $self->{'Bytes_I'}
0 0 2 defined $self->{'Bytes_K'} and defined $self->{'Bytes_I'} and defined $self->{'Bytes_s'}
520 0 0 2 defined $self->{'Bytes_K'} and defined $self->{'Num_A'}
0 0 2 defined $self->{'Bytes_K'} and defined $self->{'Num_A'} and defined $self->{'Bytes_M1'}
528 0 0 1 defined $self->{'Num_k'} and defined $self->{'Num_b'}
0 0 1 defined $self->{'Num_k'} and defined $self->{'Num_b'} and defined $self->{'Num_N'}
0 0 1 defined $self->{'Num_k'} and defined $self->{'Num_b'} and defined $self->{'Num_N'} and defined $self->{'Num_g'}
567 0 0 0 $bytes and $self->{'Num_N'}
583 0 0 44 defined $bignum and ref $bignum eq 'Math::BigInt'

or 2 conditions

line l !l condition
187 5 0 $group || 'RFC5054-2048bit'
188 5 0 $hash || 'SHA256'
189 1 4 $format || 'raw'
190 0 5 $interleaved || 0
191 0 5 $default_salt_len || 32
577 0 0 shift() || 32

or 3 conditions

line l !l&&r !l&&!r condition
300 0 0 0 $s_len ||= $self->{'SALT_LEN'}
302 0 0 0 $nonce ||= join(':', @INC, $Crypt::SRP::Config{'archname'}, $Crypt::SRP::Config{'myuname'}, $^X, $^V, $<, $(, $ENV{'PATH'}, $ENV{'HOSTNAME'}, $ENV{'HOME'})
350 0 0 0 $salt_len ||= $self->{'SALT_LEN'}
545 0 0 0 $len ||= $self->{'N_LENGTH'}
595 0 16 0 $format ||= $self->{'FORMAT'}
606 0 13 0 $format ||= $self->{'FORMAT'}