Branch Coverage

blib/lib/CGI/Application/Plugin/Authentication/Driver/Filter/sha1.pm
Criterion Covered Total %
branch 22 22 100.0


line true false branch
14 6 6 if ($param) { }
2 4 elsif (length $filtered == 20) { }
2 2 elsif (length $filtered == 27) { }
15 3 3 $class->filter($param, $plain) eq $filtered ? :
17 1 1 $class->filter('binary', $plain) eq $filtered ? :
19 1 1 $class->filter('base64', $plain) eq $filtered ? :
21 1 1 $class->filter(undef, $plain) eq $filtered ? :
30 1 17 unless 'Digest::SHA'->require
31 6 11 if ($param eq 'hex') { }
5 6 elsif ($param eq 'base64') { }
5 1 elsif ($param eq 'binary') { }