Condition Coverage

lib/Graphics/Toolkit/Color/Space/Hub.pm
Criterion Covered Total %
condition 44 68 64.7


and 3 conditions

line !l l&&!r l&&r condition
21 2 490 5898 defined $_[0] && exists $space_obj{uc $_[0]}
25 1966 0 60 ref $name eq "Graphics::Toolkit::Color::Space" and is_space_name($name->name)
44 169 0 84 $space->alias and not ref get_space($space->alias)
49 0 0 3 defined $name and $name
67 384 52 0 $source_values and not $source_space->is_value_tuple($source_values)
71 384 19 33 ref $source_values and $source_space eq $target_space
80 128 0 15 @next_options and $next_space_name ne $default_space_name
94 127 0 0 not $values_are_normal and $normal_in_out[0]
95 0 127 0 $values_are_normal and not $normal_in_out[0]
101 113 0 0 not $values_are_normal and $want_result_normalized
102 0 108 5 $values_are_normal and not $want_result_normalized
110 1 106 23 ref $values eq "ARRAY" and @$values == 3 || @$values == 4
121 142 0 15 @next_options and $next_space_name ne $default_space_name
123 142 0 0 not $values_are_normal and $normal_in_out[0]
124 0 142 0 $values_are_normal and not $normal_in_out[0]
152 24 0 12 defined $space_name && $space_name

or 2 conditions

line l !l condition
61 430 10 $want_result_normalized //= 0
112 126 3 $want_result_normalized //= 0

or 3 conditions

line l !l&&r !l&&!r condition
23 1548 478 0 shift() || $default_space_name
37 239 14 0 @converter_target or $name eq $default_space_name
72 290 33 113 $target_space->name eq default_space()->name or $source_space eq $target_space
110 126 3 0 @$values == 3 || @$values == 4

xor 4 conditions

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