Branch Coverage

blib/lib/App/CSVUtils/csv_sort_rows.pm
Criterion Covered Total %
branch 45 62 72.5


line true false branch
20 3 11 if $r->{'util_args'}{'hash'}
28 9 33 if ($r->{'wants_input_row_as_hashref'})
33 9 33 if ($r->{'wants_input_row_as_hashref'})
45 4 10 if ($r->{'util_args'}{'key'})
47 2 2 $r->{'util_args'}{'hash'} ? :
54 0 14 unless (grep {defined $_;} $r->{'util_args'}{'by_code'}, $r->{'util_args'}{'by_sortsub'}, $r->{'util_args'}{'by_fields'})
56 0 0 if (@{$r->{'input_fields'};} == 1)
59 0 0 App::CSVUtils::_is_numeric_field($r->{'input_rows'}, 0) ? :
64 6 8 if ($r->{'util_args'}{'by_code'} or $r->{'util_args'}{'by_sortsub'}) { }
8 0 elsif ($r->{'util_args'}{'by_fields'}) { }
67 4 2 if ($r->{'util_args'}{'by_code'}) { }
2 0 elsif (defined $r->{'util_args'}{'by_sortsub'}) { }
77 4 2 if (@keys) { }
1 1 elsif ($r->{'util_args'}{'hash'}) { }
98 5 1 if ($sort_indices) { }
113 2 7 if ($prefix eq '+') { }
2 5 elsif ($prefix eq '-') { }
4 1 elsif ($prefix eq '') { }
1 0 elsif ($prefix eq '~') { }
114 1 1 $code_str ? :
117 0 2 $code_str ? :
120 1 3 if ($r->{'util_args'}{'ci'}) { }
121 0 1 $code_str ? :
124 0 3 $code_str ? :
128 0 1 if ($r->{'util_args'}{'ci'}) { }
129 0 0 $code_str ? :
132 0 1 $code_str ? :
146 2 12 if ($main::_CSV_SORTED_ROWS) { }
149 1 1 if (Data::Cmp::cmp_data($r->{'input_rows'}, $sorted_rows)) { }
151 0 1 $r->{'util_args'}{'quiet'} ? :
154 0 1 $r->{'util_args'}{'quiet'} ? :