Branch Coverage

blib/lib/App/RecordStream/Operation/toptable.pm
Criterion Covered Total %
branch 55 72 76.3


line true false branch
33 3 0 if (/^(.*)=(.*)$/)
42 0 10 if (%sorts and $all_at_end)
81 18 534 unless ($xfields_hash->{$spec})
87 17 499 unless ($yfields_hash->{$spec})
94 1 9 if ($this->{'SORT_ALL_TO_END'})
103 8 2 if ($do_vfields) { }
110 1008 0 if (scalar @$key_list > 0)
116 9 279 unless (exists $used_first_level_keys{$field} or exists $vfields{$field})
131 4 80 unless ($vfields_hash->{$spec})
150 0 108 if ($pfield eq 'FIELD')
156 108 0 if ($record->has_key_spec($pfield))
160 68 40 if ($pins{$pfield} ne $v)
165 68 241 if ($kickout)
171 0 304 unless ($record->has_key_spec($vfield))
176 0 304 if (exists $pins{'FIELD'} and $pins{'FIELD'} ne $vfield)
183 126 416 if ($xfield eq 'FIELD') { }
416 0 elsif ($record->has_key_spec($xfield)) { }
195 0 528 if ($yfield eq 'FIELD') { }
528 0 elsif ($record->has_key_spec($yfield)) { }
205 304 0 if ($record->has_key_spec($vfield))
228 2 8 if ($this->{'OUTPUT_RECORDS'})
237 8 0 if ($headers)
246 8 0 if ($headers)
260 72 22 if ($last_xv[$j] ne $xv->[$j])
274 81 28 if ($last_yv[$j] ne $yv->[$j])
290 0 255 if ($i == -1)
296 0 255 if ($j == -1)
312 113 739 if ($l > $w[$i])
320 852 0 if ($_[0] < @$row)
409 59 2 unless (defined $comparator)
427 608 1070 unless (@keys)
436 191 879 unless ($next_node)
450 150 61 unless (@$fields_left)
460 2 59 if (defined $sort)
477 510 874 unless (@path)
486 0 874 unless ($next_node)