Condition Coverage

blib/lib/Lego/From/PNG/Brick.pm
Criterion Covered Total %
condition 0 18 0.0


or 2 conditions

line l !l condition
25 0 0 $$hash{'depth'} ||= 1
26 0 0 $$hash{'length'} ||= 1
27 0 0 $$hash{'height'} ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
30 0 0 0 !$$hash{'meta'} || ref $$hash{'meta'} ne 'HASH'
32 0 0 0 ref $class || $class
41 0 0 0 $$self{'id'} ||= $self->color . '_' . join('x', $self->depth, $self->length, $self->height)
104 0 0 0 $$self{'color_info'} ||= do { my $color = $self->color; my($on_key, $cn_key, $hex_key, $r_key, $g_key, $b_key) = ($color . '_OFFICIAL_NAME', $color . '_COMMON_NAME', $color . '_HEX_COLOR', $color . '_RGB_COLOR_RED', $color . '_RGB_COLOR_GREEN', $color . '_RGB_COLOR_BLUE'); no strict 'refs'; +{'cid', $color, 'official_name', 'Lego::From::PNG::Const'->$on_key, 'common_name', 'Lego::From::PNG::Const'->$cn_key, 'hex_color', 'Lego::From::PNG::Const'->$hex_key, 'rgb_color', ['Lego::From::PNG::Const'->$r_key, 'Lego::From::PNG::Const'->$g_key, 'Lego::From::PNG::Const'->$b_key]} }