Branch Coverage

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


line true false branch
36 0 2 unless defined $key
37 0 2 if (my $ref_of_key = ref $key) { }
38 0 0 unless $ref_of_key eq 'ARRAY'
39 0 0 if scalar @{$key;} != $ELEMENTS_IN_KEY
40 0 0 unless all sub { isint $_ != 0; } , @{$key;}
43 0 2 if length $key != $KEY_SIZE
57 0 2 if length $plain_text < $MIN_BLOCK_SIZE
58 0 2 if length($plain_text) % $FACTOR != 0
70 0 2 if length $cipher_text < $MIN_BLOCK_SIZE
71 0 2 if length($cipher_text) % $FACTOR != 0
83 0 2 if scalar @{$block_ref;} < $MIN_ELEMENTS_IN_BLOCK
84 0 2 if scalar @{$key_ref;} != $ELEMENTS_IN_KEY
94 0 2 if scalar @{$block_ref;} < $MIN_ELEMENTS_IN_BLOCK
95 0 2 if scalar @{$key_ref;} != $ELEMENTS_IN_KEY
102 0 2 if length $key_str != $KEY_SIZE