Condition Coverage

blib/lib/Algorithm/BinPack/2D.pm
Criterion Covered Total %
condition 31 33 93.9


and 3 conditions

line !l l&&!r l&&r condition
70 1 1 16 $$item{'label'} and $$item{'width'}
2 1 15 $$item{'label'} and $$item{'width'} and $$item{'height'}
2 1 14 $$item{'label'} and $$item{'width'} and $$item{'height'} and $$item{'width'} > 0
2 0 14 $$item{'label'} and $$item{'width'} and $$item{'height'} and $$item{'width'} > 0 and $$item{'height'} > 0
197 4 5 8 $$bin{'width'} == $width and $$bin{'height'} == $height

or 3 conditions

line l !l&&r !l&&!r condition
78 1 0 13 $$self{'binwidth'} < $$item{'width'} or $$self{'binheight'} < $$item{'height'}
187 2 8 27 pack_in_a_bin($$bin{'left'}, $width, $height, $label) || pack_in_a_bin($$bin{'right'}, $width, $height, $label)
191 28 7 26 $$bin{'filled'} or $$bin{'width'} < $width
35 9 17 $$bin{'filled'} or $$bin{'width'} < $width or $$bin{'height'} < $height
252 8 1 5 $bbigger <=> $abigger or $bsmaller <=> $asmaller
9 1 4 $bbigger <=> $abigger or $bsmaller <=> $asmaller or $$b{'width'} <=> $$a{'width'}