Branch Coverage

blib/lib/Dancer/Plugin/EncodeID.pm
Criterion Covered Total %
branch 22 34 64.7


line true false branch
16 0 6 unless my $settings = plugin_setting()
19 1 5 unless my $secret = $$settings{'secret'}
23 0 5 unless length $padding_character == 1
30 0 139 unless defined $cleartext_id
34 2 137 if defined $prefix
36 5 134 unless $cipher
41 1 137 if length $cleartext_id == 0
46 37 216 if (length $sub_text < 8)
57 0 0 unless my $encoded_id = shift()
59 0 0 unless $encoded_id =~ /^[0-9A-F]+$/i
60 0 0 unless length($encoded_id) % 16 == 0
65 0 136 unless my $encoded_id = shift()
71 1 135 unless $cipher
73 0 136 unless $encoded_id =~ /^[0-9A-F]+$/i
74 0 136 unless length($encoded_id) % 16 == 0
91 2 134 if (defined $prefix)
94 1 1 if ($i != 0)