Condition Coverage

blib/lib/Rstats/Func.pm
Criterion Covered Total %
condition 101 137 73.7


and 3 conditions

line !l l&&!r l&&r condition
36 85 0 1 defined $x_exclude->value and Rstats::Func::length($r, $x_exclude)->value
41 0 0 3 defined $x_levels_value and defined $x_exclude_value
0 2 1 defined $x_levels_value and defined $x_exclude_value and $x_levels_value eq $x_exclude_value
66 83 2 1 $labels_length == 1 and get_length($r, $x1) != 1
138 44 0 1 ref $data[0] and is_data_frame($r, $data[0])
151 79 3 31 is_character($r, $v) and not grep({$_ eq 'AsIs';} @{$v->class->values;})
670 9 2 1 $header_opt and not $header
1216 0 0 5 $x1_x->get_type eq 'character' and $x1_table->get_type eq 'character'
1292 0 6 3 $x1_value->{'re'} == $x2_value->{'re'} and $x1_value->{'im'} == $x2_value->{'im'}
1686 1 0 2 $element > $max and not is_nan($r, $max)
1716 1 0 2 $element < $min and not is_nan($r, $min)
1782 0 0 36 is_numeric($r, $x1_re) and is_numeric($r, $x1_im)
1909 2 0 11 not is_nan($r, $max) and value($r, $element > $max)
1949 2 11 0 not is_nan($r, $min) and value($r, $element < $min)
2335 3 1 0 $length > $x1_length and not $replace
2573 0 0 2 is_matrix($r, $x1) and is_matrix($r, $x2)
2663 137 1 0 defined $length and defined $by
2679 137 0 1 defined $length and $from ne $to

or 2 conditions

line l !l condition
262 1 0 $nrow ||= 1
266 1 2 $ncol ||= 1
683 7 4 $type_columns ||= [('logical') x $row_size]
687 26 11 $columns->[$i] ||= []
978 5 1 $x1_dim_values->[$i] || 1
979 5 1 $x2_dim_values->[$i] || 1
995 1440 288 $x1_dim_values->[$k] || 1
996 1440 288 $x2_dim_values->[$k] || 1
2023 3 4 $element_info->{$value} ||= {}
3044 5 0 $value->{'re'} || 0
3045 4 1 $value->{'im'} || 0
3552 138 48 $new_elements_array->[$new_pos] ||= []
3624 3 2 $new_values->[$index] ||= []

or 3 conditions

line l !l&&r !l&&!r condition
256 65 1 9 defined $nrow || defined $ncol
677 7 4 0 $row_size ||= $current_row_size
766 5 0 6 not defined $max_length or $length > $max_length
1279 9 0 9 $type eq 'double' or $type eq 'integer'
1760 2 1 36 get_length($r, $x1_mod) or get_length($r, $x1_arg)
1967 2 0 3 $opt->{'decreasing'} || FALSE($r)
2066 4 2 2 not defined $maxs[$i] or $elements->[$i] > $maxs[$i]
2083 4 2 2 not defined $mins[$i] or $elements->[$i] < $mins[$i]
2563 1 1 2 is_null($r, $x1) or is_null($r, $x2)
2575 0 0 2 get_length($r, $x1) == 0 or get_length($r, $x2) == 0
2764 0 0 32977 $type eq 'character' or $type eq 'complex'
4 32970 0 $type eq 'integer' or $type eq 'logical'
2768 0 0 3 $value eq 'Inf' or $value eq '-Inf'
2795 1 49 8 $x1->{'object_type'} eq 'NULL' or $x1->{'object_type'} eq 'array'
50 0 8 $x1->{'object_type'} eq 'NULL' or $x1->{'object_type'} eq 'array' or $x1->{'object_type'} eq 'factor'
3071 8 3 0 is_vector($r, $x1) or is_array($r, $x1)
3673 560 0 4 $x1->{'object_type'} eq 'array' or $x1->{'object_type'} eq 'factor'
3694 998 0 19 $x1->{'object_type'} eq 'array' or $x1->{'object_type'} eq 'factor'
3814 2 1 412 is_na($r, $_) || is_nan($r, $_)