Condition Coverage

lib/Graphics/Toolkit/Color/Space/Format.pm
Criterion Covered Total %
condition 27 54 50.0


and 3 conditions

line !l l&&!r l&&r condition
20 0 0 1411 defined $_ && $_
83 1 28 142 defined $_[1] && exists $_[0]{'formatter'}{lc $_[1]}
84 0 32 1 defined $_[1] && exists $_[0]{'deformatter'}{lc $_[1]}
139 31 0 66 substr($tuple->[$axis_index], -$suf_length) eq $suffix->[$axis_index] and substr($tuple->[$axis_index], -($suf_length + 1), 1) ne " "
195 0 1279 618 defined $string and not ref $string
199 582 0 36 $self->{'basis'}->is_name($space_name) and $tuple_string
207 0 1351 646 defined $string and not ref $string
211 627 0 19 $self->{'basis'}->is_name($space_name) and $tuple_string
222 44 0 2 @$array == 1 and ref $array->[0] eq "ARRAY"

or 3 conditions

line l !l&&r !l&&!r condition
64 0 0 31 not defined $format or ref $format
0 0 31 not defined $format or ref $format or ref $code ne "CODE"
70 0 0 31 not defined $format or ref $format
0 0 31 not defined $format or ref $format or ref $code ne "CODE"
76 0 0 15 ref $pre_code ne "CODE" or ref $post_code ne "CODE"
219 1083 0 855 ref $array ne "ARRAY" or not @$array
235 0 0 0 $name //= $self->basis->space_name(undef, "given")
240 0 13 0 $name //= $self->basis->space_name(undef, "given")
245 0 36 0 $name //= $self->basis->space_name(undef, "given")