Condition Coverage

lib/Graphics/Toolkit/Color/Space/Hub.pm
Criterion Covered Total %
condition 46 68 67.6


and 3 conditions

line !l l&&!r l&&r condition
21 2 509 6217 defined $_[0] && exists $space_obj{uc $_[0]}
25 2075 0 60 ref $name eq "Graphics::Toolkit::Color::Space" and is_space_name($name->name)
44 155 0 98 $space->alias and not ref get_space($space->alias)
49 0 0 3 defined $name and $name
67 409 56 0 $source_values and not $source_space->is_value_tuple($source_values)
72 409 21 35 ref $source_values and $source_space eq $target_space
81 84 46 84 @next_options and $next_space_name ne $default_space_name
95 129 0 0 not $values_are_normal and $normal_in_out[0]
96 0 129 0 $values_are_normal and not $normal_in_out[0]
102 115 0 0 not $values_are_normal and $want_result_normalized
103 0 110 5 $values_are_normal and not $want_result_normalized
111 1 109 23 ref $values eq "ARRAY" and @$values == 3 || @$values == 4
122 91 54 91 @next_options and $next_space_name ne $default_space_name
124 145 0 0 not $values_are_normal and $normal_in_out[0]
125 0 145 0 $values_are_normal and not $normal_in_out[0]
153 23 0 16 defined $space_name && $space_name

or 2 conditions

line l !l condition
61 459 10 $want_result_normalized //= 0
113 129 3 $want_result_normalized //= 0

or 3 conditions

line l !l&&r !l&&!r condition
23 1627 508 0 shift() || $default_space_name
37 239 14 0 @converter_target or $name eq $default_space_name
73 315 35 115 $target_space->name eq default_space()->name or $source_space eq $target_space
111 129 3 0 @$values == 3 || @$values == 4

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
65 401 0 0 64 defined $source_space_name xor defined $source_values