Condition Coverage

blib/lib/Math/Fractal/Noisemaker.pm
Criterion Covered Total %
condition 174 346 50.2


and 3 conditions

line !l l&&!r l&&r condition
241 0 0 0 $_[0] and lc $_[0] eq 'types'
0 0 0 $_[0] and lc $_[0] eq 'moretypes'
0 0 0 $_[0] and lc $_[0] eq 'more'
297 39 0 0 $args{'clut'} and not -e $args{'clut'}
354 39 0 0 $args{'shadow'} and $args{'emboss'}
358 38 1 0 $args{'type'} eq 'terra' and $args{'lbase'} =~ /[prs]gel/ || $args{'ltype'} =~ /[prs]gel/ || $args{'stype'} =~ /[prs]gel/
38 1 0 $args{'type'} eq 'terra' and $args{'lbase'} eq 'gel' || $args{'ltype'} eq 'gel' || $args{'stype'} eq 'gel'
492 196 5 137 not defined $args{'auto'} and $args{'type'} ne 'fern'
567 39 0 0 $args{'clut'} and $args{'clutdir'}
572 39 0 0 $args{'emboss'} and not $args{'shadow'}
594 39 0 0 $args{'shadow'} and not $args{'emboss'}
1291 256 3840 1024 $n and $args{'ridged'}
1559 0 569 46 $feather > 0 and $diff <= $feather
569 0 0 $feather < 0 and $diff <= $feather * -1
1647 31296 13024 110816 $thisX == $x and $thisY == $y
2072 582 442 11020 $zx * $zx + $zy * $zy < $freq and $n < $iters
2121 21240 11528 1674170 $zx * $zx + $zy * $zy < $prefreq and $n < $prefreq / 2
2130 21234 11530 4 $pct > 0.99 and $pct < 1
2161 1024 0 57714 $zx * $zx + $zy * $zy < $freq and $n < $iters
2223 84 44 181050 $zx * $zx + $zy * $zy < $freq and $n < $iters
2236 1 0 155 $zx * $zx + $zy * $zy < $freq and $n < $iters
2578 5 0 0 not $QUIET and $prev != @points
3263 13 499 52831 $i <= $iters and $Zx2 + $Zy2 < $ER2

or 2 conditions

line l !l condition
365 0 0 $args{'freq'} ||= 2
366 0 0 $args{'displace'} ||= 0.125
374 0 0 $args{'freq'} ||= 4
375 0 0 $args{'displace'} ||= 0.5
638 114 0 $GROW_FN ||= \&grow_interp
654 0 0 $args{'xscale'} || 1
655 0 0 $args{'yscale'} || 1
899 1 1 $args{'dist'} || 0
1036 0 3 $args{'gap'} ||= 0.995
1382 0 0 $inColumn->get($y) || 0
1402 1 1 $args{'dirs'} || 6
1404 1 1 $args{'rad'} || 6
1486 0 1 $args{'layers'} ||= 4
1638 2048 153088 $length || scalar @$noise
1666 40783 3537 $thisColumn->get($thisY) || 0
1667 40783 3537 $nextColumn->get($thisY) || 0
1668 40783 3537 $thisColumn->get($nextY) || 0
1669 40783 3537 $nextColumn->get($nextY) || 0
1684 0 0 shift() || 0
1685 0 0 shift() || 0
1686 0 0 shift() || 0
1698 129559 11191 shift() || 0
1699 129578 11172 shift() || 0
1700 100590 40160 shift() || 0
1754 0 1 $args{'amp'} ||= 1
1858 0 1 $args{'amp'} ||= 1
1876 0 1 $args{'zoom'} || 1
1969 0 1 $args{'amp'} ||= 1
1983 0 1 $args{'zoom'} || 1
2052 0 2 $args{'zoom'} || 1
2197 0 1 $args{'maxiter'} || 4096
2206 0 1 $args{'zoom'} || 1
2323 0 0 $column->get($y) || 0
2336 0 0 shift() || 1
2653 0 1 $args{'freq'} ||= 8
2926 1 1 $args{'freq'} ||= 64
3174 0 1 $args{'maxiter'} ||= 4096
3385 0 1 $args{'maxiter'} || 10

or 3 conditions

line l !l&&r !l&&!r condition
327 39 0 0 $args{'type'} ||= $DEFAULT_TYPE
328 0 39 0 $args{'stype'} ||= $DEFAULT_SLICE_TYPE
329 0 39 0 $args{'lbase'} ||= $DEFAULT_TERRAIN_BASE
330 0 39 0 $args{'ltype'} ||= $DEFAULT_TERRAIN_SLICE
358 0 0 1 $args{'lbase'} =~ /[prs]gel/ || $args{'ltype'} =~ /[prs]gel/ || $args{'stype'} =~ /[prs]gel/
0 0 1 $args{'lbase'} eq 'gel' || $args{'ltype'} eq 'gel' || $args{'stype'} eq 'gel'
378 0 0 39 $args{'format'} || $DEFAULT_FORMAT
386 1 38 0 $args{'out'} ||= join('.', $args{'type'}, $format)
395 39 0 0 $args{'len'} ||= $DEFAULT_LEN
423 0 0 39 defined $args{'xscale'} or defined $args{'yscale'}
433 0 0 39 $args{'delta'} or $args{'chiral'}
482 12 0 326 $args{'gap'} ||= $DEFAULT_GAP
483 329 9 0 $args{'type'} ||= $DEFAULT_TYPE
484 329 9 0 $args{'stype'} ||= $DEFAULT_SLICE_TYPE
485 329 9 0 $args{'lbase'} ||= $DEFAULT_TERRAIN_BASE
486 329 9 0 $args{'ltype'} ||= $DEFAULT_TERRAIN_SLICE
487 232 106 0 $args{'freq'} ||= $DEFAULT_FREQ
488 338 0 0 $args{'len'} ||= $DEFAULT_LEN
489 200 138 0 $args{'octaves'} ||= $DEFAULT_OCTAVES
490 198 140 0 $args{'persist'} ||= $DEFAULT_PERSIST
842 1 0 0 $args{'len'} ||= $DEFAULT_LEN
889 2 0 0 $args{'len'} ||= $DEFAULT_LEN
929 8192 2048 0 $distType == 0 or $distType == 3
978 45 0 0 $args{'len'} ||= $DEFAULT_LEN
1035 1 2 0 $args{'amp'} ||= $DEFAULT_AMP
1110 0 3 0 $args{'grid'} || white(%args, 'len', $freq * 2)
1403 1 1 0 $args{'angle'} || rand 360
1559 46 0 569 $feather > 0 and $diff <= $feather or $feather < 0 and $diff <= $feather * -1
1624 0 1024 0 shift() || $MAX_COLOR
1639 2048 153088 0 $length || $$noise[0]->len
1714 1 0 0 $args{'len'} ||= $DEFAULT_LEN
1719 0 1 0 $args{'grid'} || white(%args, 'len', $args{'freq'})
1752 1 0 0 $args{'len'} ||= $DEFAULT_LEN
1771 0 1 0 $args{'maxiter'} || $freq * $freq
1856 1 0 0 $args{'len'} ||= $DEFAULT_LEN
1867 0 1 0 $args{'maxiter'} || $freq * $freq * 100
1967 1 0 0 $args{'len'} ||= $DEFAULT_LEN
2043 2 0 0 $args{'len'} ||= $DEFAULT_LEN
2050 0 2 0 $args{'maxiter'} || $freq
2100 1 0 0 $args{'len'} ||= $DEFAULT_LEN
2106 0 1 0 $args{'maxiter'} || $MAX_COLOR
2138 0 1 0 $args{'zoom'} || 5120 + rand(128)
2190 1 0 0 $args{'len'} ||= $DEFAULT_LEN
2450 1 0 0 $args{'len'} ||= $DEFAULT_LEN
2533 0 1 0 $args{'bias'} ||= $DEFAULT_BIAS
2534 0 1 0 $args{'amp'} ||= $DEFAULT_AMP
2535 1 0 0 $args{'len'} ||= $DEFAULT_LEN
2536 0 1 0 $args{'freq'} ||= $DEFAULT_FREQ
2590 53 4 26 $column->get($y) or $$grid[($x + 1) % $len]->get($y)
57 1 25 $column->get($y) or $$grid[($x + 1) % $len]->get($y) or $$grid[($x - 1) % $len]->get($y)
5 0 25 $column->get($y) or $$grid[($x + 1) % $len]->get($y) or $$grid[($x - 1) % $len]->get($y) or $column->get(($y + 1) % $len)
1 1 24 $column->get($y) or $$grid[($x + 1) % $len]->get($y) or $$grid[($x - 1) % $len]->get($y) or $column->get(($y + 1) % $len) or $column->get(($y - 1) % $len)
1 2 22 $column->get($y) or $$grid[($x + 1) % $len]->get($y) or $$grid[($x - 1) % $len]->get($y) or $column->get(($y + 1) % $len) or $column->get(($y - 1) % $len) or $$grid[($x + 1) % $len]->get(($y + 1) % $len)
3 1 21 $column->get($y) or $$grid[($x + 1) % $len]->get($y) or $$grid[($x - 1) % $len]->get($y) or $column->get(($y + 1) % $len) or $column->get(($y - 1) % $len) or $$grid[($x + 1) % $len]->get(($y + 1) % $len) or $$grid[($x + 1) % $len]->get(($y - 1) % $len)
3 2 19 $column->get($y) or $$grid[($x + 1) % $len]->get($y) or $$grid[($x - 1) % $len]->get($y) or $column->get(($y + 1) % $len) or $column->get(($y - 1) % $len) or $$grid[($x + 1) % $len]->get(($y + 1) % $len) or $$grid[($x + 1) % $len]->get(($y - 1) % $len) or $$grid[($x - 1) % $len]->get(($y - 1) % $len)
3 0 19 $column->get($y) or $$grid[($x + 1) % $len]->get($y) or $$grid[($x - 1) % $len]->get($y) or $column->get(($y + 1) % $len) or $column->get(($y - 1) % $len) or $$grid[($x + 1) % $len]->get(($y + 1) % $len) or $$grid[($x + 1) % $len]->get(($y - 1) % $len) or $$grid[($x - 1) % $len]->get(($y - 1) % $len) or $$grid[($x - 1) % $len]->get(($y + 1) % $len)
2632 9 0 0 $args{'len'} || $DEFAULT_LEN
2667 2 0 0 $args{'len'} || $DEFAULT_LEN
2791 8 0 0 $dirs == 1 or $dirs == 2
2820 8 0 0 $dirs == 1 or $dirs == 3
2923 2 0 0 $args{'len'} ||= $DEFAULT_LEN
2967 1 0 0 $args{'len'} ||= $DEFAULT_LEN
3105 0 0 0 $args{'len'} || $DEFAULT_LEN
3192 2 0 0 $args{'len'} ||= $DEFAULT_LEN
3230 1 1 0 $args{'maxiter'} || $MAX_COLOR * 0.75
3368 1 0 0 $args{'len'} ||= $DEFAULT_LEN
3600 272 0 0 shift() || $DEFAULT_LEN