Branch Coverage

blib/lib/Lab/XPRESS/Data/XPRESS_DataFile.pm
Criterion Covered Total %
branch 22 90 24.4


line true false branch
38 2 0 unless ($filenamebase =~ /(.+)(\..+)\b/u)
43 2 0 if @_
82 2 0 unless (defined $GLOBAL_FOLDER)
83 0 2 unless (-d $GLOBAL_PATH)
94 0 4 if ($file =~ /($foldername)_([0-9]+)\b/u)
95 0 0 if ($2 > $max_index)
124 0 2 unless open my $LOG, ">" . $GLOBAL_FOLDER . "/Config.txt"
163 0 0 unless (defined $header)
179 0 0 unless (defined $config)
195 0 15 if (eval "return exists &Lab::XPRESS::Sweep::$col;")
200 11 4 unless (defined $col)
217 0 0 if (ref @_[0] eq 'HASH') { }
224 0 0 unless (defined $plot->{'autosave'})
244 2 0 if (defined $plots)
256 0 0 unless ($filenamebase =~ m[/]u)
268 0 0 if (-z $old_file)
286 0 2 if (defined $self->{'HEADER'})
290 0 2 if (defined $self->{'CONFIG'})
293 2 0 if (defined @{$$self{"COLUMNS"};}[0])
306 2 0 unless ($self->{'LOG_STARTED'})
336 0 0 unless (defined $self->{'loop'}{'t0'})
343 0 0 if ($delta_time > $self->{'loop'}{'interval'}) { }
368 2 0 $Monat < 10 ? :
369 2 0 $Monatstag < 10 ? :
370 0 2 $Stunden < 10 ? :
371 0 2 $Minuten < 10 ? :
372 0 2 $Sekunden < 10 ? :
401 0 0 if (not defined $plot_index) { }
0 0 elsif ($plot_index > (my $num_plots = @{$self->{'logger'}{'plots'};})) { }
409 0 0 unless (defined $filename)
417 0 0 unless (defined $type)
432 0 44 if ($self->{'skiplog'} == 1)
437 0 44 unless ($self->{'LOG_STARTED'})
441 44 0 if (ref $_[0] eq 'HASH') { }
473 0 0 unless (defined $cmd)
478 0 0 if ($plot_index > (my $num_plots = @{$self->{'logger'}{'plots'};}))
503 0 0 if ($plot->{'plotter'}{'PAUSE'} < 0)
508 0 0 if (not defined $gpipe) { }
0 0 elsif (not my $result = print($gpipe '')) { }
529 0 0 if ($plot->{'plotter'}{'PAUSE'} > 0)
563 0 0 if (not defined $plot{'x-min'}) { }
569 0 0 if (not defined $plot{'x-max'}) { }
575 0 0 if (not defined $plot{'y-min'}) { }
581 0 0 if (not defined $plot{'y-max'}) { }
596 0 0 if ($self->{'writer'})