Branch Coverage

blib/lib/Crypt/XTEA_PP.pm
Criterion Covered Total %
branch 12 30 40.0


line true false branch
17 0 1 if (not defined $Crypt::XTEA_PP::Config{'use64bitint'})
43 0 2 unless defined $key
44 0 2 if (my $ref_of_key = ref $key) { }
45 0 0 unless $ref_of_key eq 'ARRAY'
46 0 0 if scalar @{$key;} != $ELEMENTS_IN_KEY
47 0 0 unless all sub { /^-?\d+$/; } , @{$key;}
50 0 2 if length $key != $KEY_SIZE
53 0 2 unless $rounds =~ /^\d+$/
65 0 2 if length $plain_text != $BLOCK_SIZE
75 0 2 if length $cipher_text != $BLOCK_SIZE
86 0 2 if scalar @{$block_ref;} != $ELEMENTS_IN_BLOCK
87 0 2 if scalar @{$key_ref;} != $ELEMENTS_IN_KEY
111 0 2 if scalar @{$block_ref;} != $ELEMENTS_IN_BLOCK
112 0 2 if scalar @{$key_ref;} != $ELEMENTS_IN_KEY
127 0 2 if length $key_str != $KEY_SIZE