Branch Coverage

blib/lib/Lab/Moose/DataFile/Gnuplot.pm
Criterion Covered Total %
branch 14 78 17.9


line true false branch
66 0 37 if (@columns == 0)
86 0 172 if (ref $_[0] eq 'HASH') { }
99 0 445 unless (defined $value)
102 0 445 unless (&looks_like_number($value))
107 273 172 if ($idx != $#columns)
113 0 172 if (keys %args)
139 0 7 if (@dims == 1) { }
0 7 elsif (@dims != 2) { }
147 7 0 $prefix ? :
154 0 7 if ($num_prefix_cols + $num_block_cols != $num_cols)
177 0 7 if ($add_newline) { }
0 7 elsif ($refresh_plots) { }
255 0 0 if (defined $x_column) { }
256 0 0 unless (defined $y_column)
267 0 0 unless (defined $curves)
287 0 0 if (defined $legend_column)
291 0 0 unless (&any(sub {
329 0 0 if (defined $x_column) { }
330 0 0 unless (defined $y_column and defined $z_column)
336 0 0 unless (defined $curves)
362 0 0 unless (&any(sub {
403 0 0 if (defined $hard_copy and defined $hard_copy_suffix)
407 0 0 unless (defined $hard_copy)
412 0 0 if (defined $hard_copy_suffix)
419 0 0 unless (defined $terminal and $terminal eq "dumb")
435 0 0 if ($type =~ /points?/iu) { }
0 0 elsif ($type =~ /pm3d/iu) { }
445 0 0 if ($live)
459 0 0 if ($hard_copy_path =~ /\\/u)
483 0 0 if (not $force and &Lab::Moose::DataFile::Gnuplot::time() - $plot->{'last_refresh_time'} < $plot->{'refresh_interval'})
490 0 0 unless (defined $plot)
500 0 0 if ($self->num_data_rows < 2)
506 0 0 if ($type eq '2d') { }
0 0 elsif ($type eq 'pm3d') { }
519 0 0 if (defined $legend_column)
538 0 0 if (defined $legend_column)
554 0 0 if ($self->num_blocks < 2)
601 171 0 if (defined $refresh) { }
604 0 0 if (defined $plot->{'refresh'} and $plot->{'refresh'} eq $refresh)