Branch Coverage

blib/lib/Crypt/URandom.pm
Criterion Covered Total %
branch 16 44 36.3


line true false branch
27 0 14 if ($Crypt::URandom::OSNAME eq "freebsd")
40 0 8 if ($Crypt::URandom::OSNAME eq 'MSWin32') { }
45 0 0 $major < W2K_MAJOR_VERSION() ? :
46 0 0 $major == W2K_MAJOR_VERSION() && $minor == W2K_MINOR_VERSION() ? :
51 0 0 if ($ntorlower) { }
0 0 elsif ($w2k) { }
61 0 0 unless (defined $crypt_acquire_context_a)
72 0 0 unless ($result)
78 0 0 unless (defined $crypt_gen_random)
93 0 0 unless (defined $rtlgenrand)
102 2 6 unless $_urandom_handle = "FileHandle"->new(PATH(), 0)
127 17 1 if (defined $length)
128 16 1 if ($length =~ /^\d+$/msx)
132 2 16 unless ($length_ok)
136 8 8 unless (defined $_initialised and $_initialised == $Crypt::URandom::PROCESS_ID)
140 0 14 if ($Crypt::URandom::OSNAME eq 'MSWin32') { }
142 0 0 if ($_cryptgenrandom) { }
0 0 elsif ($_rtlgenrand) { }
145 0 0 unless ($result)
152 0 0 unless ($result)
160 10 4 if (defined $result) { }
161 10 0 if ($result == $length) { }