Condition Coverage

lib/Graphics/Toolkit/Color.pm
Criterion Covered Total %
condition 62 90 68.8


and 3 conditions

line !l l&&!r l&&r condition
33 80 4 2 @args == 2 and $first_arg_is_color_space
84 0 2 @args == 2 and $first_arg_is_color_space and ref $args[1] eq "ARRAY"
34 60 19 1 @args > 3 and $first_arg_is_color_space
77 124 34 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)
158 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)
80 124 1 33 @$raw_args == 1 and defined $only_parameter
125 0 33 @$raw_args == 1 and defined $only_parameter and $only_parameter
82 24 9 0 @$required_parameter and $required_parameter->[0] ne $only_parameter
91 2 0 0 defined $only_parameter && $only_parameter
97 37 0 30 ref $parameter_alias eq "HASH" and exists $parameter_alias->{$parameter_name}
0 20 10 ref $parameter_alias eq "HASH" and exists $parameter_alias->{$parameter_name} and exists $arg_hash{$parameter_alias->{$parameter_name}}
105 369 13 0 ref $parameter_alias eq "HASH" and exists $parameter_alias->{$parameter_name}
13 0 0 ref $parameter_alias eq "HASH" and exists $parameter_alias->{$parameter_name} and exists $arg_hash{$parameter_alias->{$parameter_name}}
209 10 0 0 @args == 1 and ref $args[0] eq "HASH"
227 10 0 0 @args == 1 and ref $args[0] eq "HASH"
272 0 5 3 ref $arg->{'to'} eq "ARRAY" and ref $arg->{'amount'} eq "ARRAY"
5 2 1 ref $arg->{'to'} eq "ARRAY" and ref $arg->{'amount'} eq "ARRAY" and @{$arg->{'amount'};} != @{$arg->{'to'};}
273 0 2 5 ref $arg->{'to'} and not ref $arg->{'amount'}
347 1 0 9 is_nr($arg->{'steps'}) and $arg->{'steps'} > 0
375 1 1 6 is_nr($arg->{'minimal_distance'}) and $arg->{'minimal_distance'} > 0
377 4 1 1 $color_space->axis_count > 3 and not ref $arg->{'radius'}

or 3 conditions

line l !l&&r !l&&!r condition
34 6 4 76 @args == 3 or @args > 3 and $first_arg_is_color_space
35 13 3 70 @args == 6 or @args == 8
217 0 1 9 @args % 2 or not @args
1 0 9 @args % 2 or not @args or @args > 10
235 0 1 9 @args % 2 or not @args
1 0 9 @args % 2 or not @args or @args > 10
339 1 0 2 ref $arg->{'to'} ne "ARRAY" or not @{$arg->{'to'};}
373 5 3 3 is_nr($arg->{'radius'}) or $color_space->is_number_tuple($arg->{'radius'})