line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::RandomCheck::Types::AllInteger; |
2
|
4
|
|
|
4
|
|
13
|
use strict; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
94
|
|
3
|
4
|
|
|
4
|
|
12
|
use warnings; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
80
|
|
4
|
4
|
|
|
4
|
|
11
|
use parent "Test::RandomCheck::Types"; |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
14
|
|
5
|
4
|
|
|
4
|
|
186
|
use Config (); |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
64
|
|
6
|
4
|
|
|
4
|
|
14
|
use Test::RandomCheck::ProbMonad; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
676
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub arbitrary { |
9
|
|
|
|
|
|
|
gen { |
10
|
0
|
|
|
0
|
|
|
my ($rand, $size) = @_; |
11
|
0
|
0
|
|
|
|
|
return 0 if $size <= 0; |
12
|
|
|
|
|
|
|
|
13
|
0
|
|
|
|
|
|
my $bits = int (($Config::Config{ivsize} * 8 - 1) * $size / 100); |
14
|
0
|
|
|
|
|
|
my $n = 1 << $bits; |
15
|
0
|
|
|
|
|
|
$rand->next_int(- $n, $n - 1); |
16
|
0
|
|
|
0
|
0
|
|
}; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub memoize_key { |
20
|
0
|
|
|
0
|
0
|
|
my ($self, $n) = @_; |
21
|
0
|
|
|
|
|
|
$n; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |