Condition Coverage

blib/lib/Digest/SHA.pm
Criterion Covered Total %
condition 9 21 42.8


and 3 conditions

line !l l&&!r l&&r condition
123 4 0 0 $file eq '-' and open FH, '< -'
139 1 0 1 $UNIVERSAL and _istext(*FH, $file)

or 3 conditions

line l !l&&r !l&&!r condition
45 1 6 2 not defined $alg or $alg == $class->algorithm
123 0 4 0 $file eq '-' and open FH, '< -' or sysopen FH, $file, -d $file ? 2 : 0
138 1 1 0 $binary or $UNIVERSAL
218 0 0 0 not defined $file or $file eq ''
232 0 0 0 not defined $file or $file eq ''