Condition Coverage

lib/Graphics/Toolkit/Color/Space/Format.pm
Criterion Covered Total %
condition 30 60 50.0


and 3 conditions

line !l l&&!r l&&r condition
20 0 0 1646 defined $_ && $_
86 1 29 139 defined $_[1] && exists $_[0]{'formatter'}{lc $_[1]}
87 0 18 1 defined $_[1] && exists $_[0]{'deformatter'}{lc $_[1]}
137 61 0 66 substr($tuple->[$axis_index], -$suf_length) eq $suffix->[$axis_index] and substr($tuple->[$axis_index], -($suf_length + 1), 1) ne " "
193 0 1602 612 defined $string and not ref $string
197 582 0 30 $self->{'basis'}->is_name($space_name) and $tuple_string
205 0 1681 642 defined $string and not ref $string
209 623 0 19 $self->{'basis'}->is_name($space_name) and $tuple_string
220 47 0 5 @$array == 1 and ref $array->[0] eq "ARRAY"

or 3 conditions

line l !l&&r !l&&!r condition
67 0 0 17 not defined $format or ref $format
0 0 17 not defined $format or ref $format or ref $code ne "CODE"
73 0 0 17 not defined $format or ref $format
0 0 17 not defined $format or ref $format or ref $code ne "CODE"
79 0 0 16 ref $pre_code ne "CODE" or ref $post_code ne "CODE"
217 1077 0 1184 ref $array ne "ARRAY" or not @$array
226 1050 668 469 ref $array ne "ARRAY" or @$array != 2
229 0 0 0 ref $array ne "ARRAY" or @$array != $self->basis->axis_count
241 0 0 0 $name //= $self->basis->space_name(undef, "given")
246 0 13 0 $name //= $self->basis->space_name(undef, "given")
251 0 42 0 $name //= $self->basis->space_name(undef, "given")