Condition Coverage

lib/Graphics/Toolkit/Color.pm
Criterion Covered Total %
condition 81 116 69.8


and 3 conditions

line !l l&&!r l&&r condition
20 5 5 6 @args and lc $args[0] ne "error"
32 1 42 32 @args > 0 and not @args % 2
70 2 2 1 defined $space_name and $space_name eq "in"
4 0 1 defined $space_name and $space_name eq "in" and defined $named_arg
72 2 3 0 defined $space_name and not ref $space
87 155 36 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)
191 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)
90 155 1 35 @$raw_args == 1 and defined $only_parameter
156 0 35 @$raw_args == 1 and defined $only_parameter and $only_parameter
92 25 10 0 @$required_parameter and $required_parameter->[0] ne $only_parameter
101 2 0 0 defined $only_parameter && $only_parameter
107 21 28 34 ref $parameter_alias eq "HASH" and exists $parameter_alias->{$parameter_name}
28 9 25 ref $parameter_alias eq "HASH" and exists $parameter_alias->{$parameter_name} and exists $arg_hash{$parameter_alias->{$parameter_name}}
115 458 53 27 ref $parameter_alias eq "HASH" and exists $parameter_alias->{$parameter_name}
53 17 10 ref $parameter_alias eq "HASH" and exists $parameter_alias->{$parameter_name} and exists $arg_hash{$parameter_alias->{$parameter_name}}
256 10 0 0 @args == 1 and ref $args[0] eq "HASH"
263 0 9 0 defined $color_space and not ref $color_space
270 10 0 0 @args == 1 and ref $args[0] eq "HASH"
277 0 9 0 defined $color_space and not ref $color_space
312 0 2 2 is_nr($arg->{'by'}) and $arg->{'by'} > 1
313 0 1 7 is_nr($_) and $_ > 1
326 1 5 10 ref $arg and !ref($arg->{'only'}) || ref $arg->{'only'} eq 'ARRAY'
328 5 10 0 defined $arg->{'in'} and not ref $color_space
372 0 0 6 is_nr($arg->{'steps'}) and $arg->{'steps'} >= 2
400 0 0 7 is_nr($arg->{'steps'}) and $arg->{'steps'} >= 2
420 6 1 6 is_nr($arg->{'radius'}) and $arg->{'radius'} >= 0
422 1 1 7 is_nr($arg->{'minimal_distance'}) and $arg->{'minimal_distance'} > 0
424 5 1 1 $color_space->axis_count > 3 and not ref $arg->{'radius'}

or 2 conditions

line l !l condition
35 4 27 $h{'raw'} // 0

or 3 conditions

line l !l&&r !l&&!r condition
48 3 0 97 @args < 1 or @args > 8
3 0 97 @args < 1 or @args > 8 or @args == 7
259 0 1 9 @args % 2 or not @args
1 0 9 @args % 2 or not @args or @args > 10
273 0 1 9 @args % 2 or not @args
1 0 9 @args % 2 or not @args or @args > 10
326 13 2 0 !ref($arg->{'only'}) || ref $arg->{'only'} eq 'ARRAY'
393 1 0 2 ref $arg->{'to'} ne "ARRAY" or not @{$arg->{'to'};}
420 6 3 4 is_nr($arg->{'radius'}) and $arg->{'radius'} >= 0 or $color_space->is_number_tuple($arg->{'radius'})