Condition Coverage

lib/Graphics/Toolkit/Color.pm
Criterion Covered Total %
condition 91 122 74.5


and 3 conditions

line !l l&&!r l&&r condition
43 70 31 5 not @args % 2 and $args[0] eq 'range' || $args[0] eq 'color' || $args[0] eq 'raw'
44 8 0 0 @args == 2 and $args[0] eq "color"
52 92 4 3 @args == 2 and $first_arg_is_color_space
96 0 3 @args == 2 and $first_arg_is_color_space and ref $args[1] eq "ARRAY"
53 69 21 1 @args > 3 and $first_arg_is_color_space
71 138 35 0 @$raw_args == 1 and ref $raw_args->[0] eq "HASH"
0 0 0 defined $only_parameter && $only_parameter eq 'to' && ref _new_from_scalar_def($raw_args)
173 0 0 @$raw_args == 1 and ref $raw_args->[0] eq "HASH" and not defined $only_parameter && $only_parameter eq 'to' && ref _new_from_scalar_def($raw_args)
74 138 1 34 @$raw_args == 1 and defined $only_parameter
139 0 34 @$raw_args == 1 and defined $only_parameter and $only_parameter
76 25 9 0 @$required_parameter and $required_parameter->[0] ne $only_parameter
85 2 0 0 defined $only_parameter && $only_parameter
91 33 8 30 ref $parameter_alias eq "HASH" and exists $parameter_alias->{$parameter_name}
8 20 10 ref $parameter_alias eq "HASH" and exists $parameter_alias->{$parameter_name} and exists $arg_hash{$parameter_alias->{$parameter_name}}
99 451 27 7 ref $parameter_alias eq "HASH" and exists $parameter_alias->{$parameter_name}
27 7 0 ref $parameter_alias eq "HASH" and exists $parameter_alias->{$parameter_name} and exists $arg_hash{$parameter_alias->{$parameter_name}}
227 10 1 4 not @args % 2 and @args
11 1 3 not @args % 2 and @args and $args[0] eq 'color' || $args[0] eq 'range' || $args[0] eq 'in' || $args[0] eq 'raw'
236 1 11 0 @args and not defined $color_def
264 10 0 0 @args == 1 and ref $args[0] eq "HASH"
282 10 0 0 @args == 1 and ref $args[0] eq "HASH"
327 0 5 4 ref $arg->{'to'} eq "ARRAY" and ref $arg->{'amount'} eq "ARRAY"
5 3 1 ref $arg->{'to'} eq "ARRAY" and ref $arg->{'amount'} eq "ARRAY" and @{$arg->{'amount'};} != @{$arg->{'to'};}
362 1 5 9 ref $arg and !ref($arg->{'only'}) || ref $arg->{'only'} eq 'ARRAY'
419 1 0 9 is_nr($arg->{'steps'}) and $arg->{'steps'} > 0
447 1 1 6 is_nr($arg->{'minimal_distance'}) and $arg->{'minimal_distance'} > 0
449 4 1 1 $color_space->axis_count > 3 and not ref $arg->{'radius'}

or 2 conditions

line l !l condition
240 0 13 $raw // 1

or 3 conditions

line l !l&&r !l&&!r condition
43 6 2 28 $args[0] eq 'range' || $args[0] eq 'color' || $args[0] eq 'raw'
53 8 4 87 @args == 3 or @args > 3 and $first_arg_is_color_space
54 14 3 82 @args == 6 or @args == 8
225 9 6 0 ref $self or @args
227 1 0 1 $args[0] eq 'color' || $args[0] eq 'range' || $args[0] eq 'in' || $args[0] eq 'raw'
233 2 1 0 defined $color_def or ref $self
272 0 1 9 @args % 2 or not @args
1 0 9 @args % 2 or not @args or @args > 10
290 0 1 9 @args % 2 or not @args
1 0 9 @args % 2 or not @args or @args > 10
362 13 1 0 !ref($arg->{'only'}) || ref $arg->{'only'} eq 'ARRAY'
411 1 0 2 ref $arg->{'to'} ne "ARRAY" or not @{$arg->{'to'};}
445 5 3 3 is_nr($arg->{'radius'}) or $color_space->is_number_tuple($arg->{'radius'})