Branch Coverage

blib/lib/Text/Password/SHA.pm
Criterion Covered Total %
branch 12 14 85.7


line true false branch
78 0 309 unless length $input
79 0 309 unless length $data
81 306 3 if $data =~ m[^\$6\$[!-~]{1,$m}\$[\w/\.]{86}$]
83 1 2 if $data =~ m[^\$5\$[!-~]{1,$m}\$[\w/\.]{43}$]
85 1 1 if $data =~ /^[\da-f]{40}$/i
106 1 410 if length $input < 4
107 1 409 if $input =~ /[^ -~]/