| blib/lib/Game/PseudoRand.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 64 | 74 | 86.4 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 26 | 3 | 1 | 3 | exists $param{'start'} and exists $param{'step_hit'} |
| 1 | 0 | 3 | exists $param{'start'} and exists $param{'step_hit'} and exists $param{'step_miss'} | |
| 28 | 1 | 1 | 1 | defined $param{'rand'} and ref $param{'rand'} ne 'CODE' |
| 43 | 3 | 2 | 7 | exists $param{'start'} and exists $param{'step'} |
| 45 | 5 | 1 | 1 | defined $param{'rand'} and ref $param{'rand'} ne 'CODE' |
| 62 | 3 | 1 | 12 | exists $param{'start'} and exists $param{'table_hit'} |
| 1 | 0 | 12 | exists $param{'start'} and exists $param{'table_hit'} and exists $param{'table_miss'} | |
| 70 | 6 | 1 | 1 | defined $param{'rand'} and ref $param{'rand'} ne 'CODE' |
| 106 | 1 | 0 | 12 | exists $param{'start'} and exists $param{'table'} |
| 111 | 8 | 1 | 1 | defined $param{'rand'} and ref $param{'rand'} ne 'CODE' |
| line | l | !l | condition |
|---|---|---|---|
| 30 | 1 | 1 | $param{'rand'} // sub { rand; } |
| 48 | 1 | 5 | $param{'rand'} // sub { rand; } |
| 71 | 2 | 5 | $param{'index_hit'} // 0 |
| 72 | 2 | 5 | $param{'index_miss'} // 0 |
| 80 | 1 | 2 | $param{'rand'} // sub { rand; } |
| 96 | 0 | 0 | $param{'idxhit'} // 0 |
| 97 | 0 | 0 | $param{'idxmiss'} // 0 |
| 112 | 3 | 6 | $param{'index'} // 0 |
| 117 | 1 | 6 | $param{'rand'} // sub { rand; } |
| 122 | 0 | 2 | $param{'index'} // 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 47 | 2 | 4 | 0 | $param{'reset'} // $odds |
| 65 | 1 | 1 | 10 | ref $param{'table_hit'} ne 'ARRAY' or not @{$param{'table_hit'};} |
| 68 | 1 | 1 | 8 | ref $param{'table_miss'} ne 'ARRAY' or not @{$param{'table_miss'};} |
| 75 | 1 | 1 | 5 | $idxhit < 0 or $idxhit >= @$table_hit |
| 77 | 1 | 1 | 3 | $idxmiss < 0 or $idxmiss >= @$table_miss |
| 109 | 1 | 1 | 10 | ref $param{'table'} ne 'ARRAY' or not @{$param{'table'};} |
| 114 | 1 | 1 | 7 | $index < 0 or $index >= @$table |
| 116 | 2 | 5 | 0 | $param{'reset'} // $odds |