Branch Coverage

blib/lib/Slurm/Sacctmgr.pm
Criterion Covered Total %
branch 39 82 47.5


line true false branch
83 1337 0 if $svers
85 0 0 if $cachedonly
114 8674 0 unless exists $args{$arg}
116 0 0 unless defined $val
122 4337 4337 unless exists $args{$arg}
124 0 4337 unless defined $val
126 4337 0 if ($arg eq 'sacctmgr' or $arg eq 'slurm_version')
129 4337 0 if ($arg eq 'sacctmgr') { }
0 0 elsif ($arg eq 'slurm_version') { }
148 0 4337 if (scalar keys %args)
159 0 4337 unless ($tmp)
174 0 4337 unless (defined $val)
214 0 1337 unless $slurm_version
222 0 1337 unless $slurm_major =~ /^\d+$/
225 915 422 if ($slurm_major < 15) { }
246 0 4337 unless ($newpath)
248 0 0 unless ($newversion)
255 4319 18 if ($newversion) { }
276 0 0 if ($err)
279 0 0 if $output
284 0 0 unless (scalar @vlines)
307 0 9972 unless (exists $SACCTMGR_CMD_CAPABILITIES_HASH{$capname})
313 1337 8635 unless ($capshash and ref $capshash eq 'HASH')
318 0 1337 unless defined $svers
321 0 1337 unless ($capshash and ref $capshash)
328 9972 0 if defined $tmp
353 14904 728 if ($res = open($PIPE, '-|')) { }
355 0 14904 unless (defined $res)
362 0 14904 if ($err and $err >> 8 == $chd_excode)
372 728 0 if ($mode)
373 0 728 unless (open STDERR, '>&STDOUT')
385 0 0 if $@
400 15 15617 if ($obj->verbose)
409 0 77 if ($tmp =~ /\s/)
432 3164 5590 if ($obj->dryrun)
440 1292 25380 if ($tmp =~ /\s/)
451 0 5414 if ($err)
454 0 0 if $output
475 0 9490 if ($err)
478 0 0 if $output
501 0 9477 unless $lines and ref $lines eq 'ARRAY'