Branch Coverage

lib/OpenVZ/Vzctl.pm
Criterion Covered Total %
branch 36 52 69.2


line true false branch
110 0 18 wantarray ? :
129 1 0 wantarray ? :
146 1 0 wantarray ? :
155 1 0 wantarray ? :
375 6 2472 if &blessed($_[0])
382 1644 822 if exists $arg{'flag'}
394 36 2340 $p =~ /^command|script$/ ? :
397 48 2328 if ($ref eq 'ARRAY') { }
2328 0 elsif ($ref eq '') { }
408 2304 24 if defined $arg{$p} and $arg{$p} ne ''
432 0 74 if &blessed($_[0])
438 54 20 if (defined $subcommands and $args[0] =~ /^$subcommands$/)
451 0 318 unless exists $validate{$spec}
454 0 318 if &any(sub { /^-$spec$/; } , @args)
458 255 63 if $optional
468 0 40 if $spec =~ /^-/
469 0 40 if exists $spec_hash{$spec}
471 0 40 unless exists $validate{$spec}
491 0 7894 if &blessed($_[0])
504 6577 1317 if exists $global{'ctid'} and $global{'ctid'} == $check_ctid or exists $global{'name'} and $global{'name'} eq $check_ctid
513 0 1317 if $syserr == -1
518 1056 261 if $syserr == 1
537 0 36 if &blessed($_[0])
555 3603 3603 if &blessed($_[0])
572 0 18 unless &blessed($_[0])
577 0 18 unless exists $vzctl{$subcommand}