Branch Coverage

blib/lib/Dancer2/Plugin/EncryptID.pm
Criterion Covered Total %
branch 9 18 50.0


line true false branch
133 0 16 unless defined $text
134 0 16 unless defined $text
137 0 16 if defined $prefix
143 1 15 if length $text < 1
147 8 12 if (length $sub_text < 8)
169 0 15 if $plugin->is_valid_encrypt_hash
195 15 0 unless length $encrypted_hash
196 0 0 unless length($encrypted_hash) % 16 == 0
197 0 0 unless $encrypted_hash =~ /^[0-9A-F]+$/i