Condition Coverage

lib/Graphics/Toolkit/Color.pm
Criterion Covered Total %
condition 65 93 69.8


and 3 conditions

line !l l&&!r l&&r condition
40 85 4 2 @args == 2 and $first_arg_is_color_space
89 0 2 @args == 2 and $first_arg_is_color_space and ref $args[1] eq "ARRAY"
41 64 19 1 @args > 3 and $first_arg_is_color_space
59 134 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)
169 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)
62 134 1 34 @$raw_args == 1 and defined $only_parameter
135 0 34 @$raw_args == 1 and defined $only_parameter and $only_parameter
64 25 9 0 @$required_parameter and $required_parameter->[0] ne $only_parameter
73 2 0 0 defined $only_parameter && $only_parameter
79 42 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}}
87 399 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}}
215 10 0 0 @args == 1 and ref $args[0] eq "HASH"
233 10 0 0 @args == 1 and ref $args[0] eq "HASH"
277 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'};}
312 1 5 9 ref $arg and !ref($arg->{'only'}) || ref $arg->{'only'} eq 'ARRAY'
369 1 0 9 is_nr($arg->{'steps'}) and $arg->{'steps'} > 0
397 1 1 6 is_nr($arg->{'minimal_distance'}) and $arg->{'minimal_distance'} > 0
399 4 1 1 $color_space->axis_count > 3 and not ref $arg->{'radius'}

or 3 conditions

line l !l&&r !l&&!r condition
41 7 4 80 @args == 3 or @args > 3 and $first_arg_is_color_space
42 13 3 75 @args == 6 or @args == 8
223 0 1 9 @args % 2 or not @args
1 0 9 @args % 2 or not @args or @args > 10
241 0 1 9 @args % 2 or not @args
1 0 9 @args % 2 or not @args or @args > 10
312 13 1 0 !ref($arg->{'only'}) || ref $arg->{'only'} eq 'ARRAY'
361 1 0 2 ref $arg->{'to'} ne "ARRAY" or not @{$arg->{'to'};}
395 5 3 3 is_nr($arg->{'radius'}) or $color_space->is_number_tuple($arg->{'radius'})