Branch Coverage

blib/lib/Ovirt/VM.pm
Criterion Covered Total %
branch 0 238 0.0


line true false branch
186 0 0 if ($self->id) { }
230 0 0 if ($self->id) { }
236 0 0 if ($vmid) { }
239 0 0 unless $is_valid
277 0 0 unless $is_valid
303 0 0 unless $is_valid
309 0 0 unless $memorystate =~ /\b(true|false)\b/
312 0 0 unless $description
355 0 0 unless $is_valid
361 0 0 unless $snapshot_id
392 0 0 unless $is_valid
438 0 0 unless $is_valid
444 0 0 unless $driver =~ /\b(virtio|ide)\b/
447 0 0 unless $format
450 0 0 unless $size
453 0 0 unless $disk_name
456 0 0 unless $storage_domain_id
508 0 0 unless $is_valid
514 0 0 unless $disk_id
545 0 0 unless $is_valid
582 0 0 unless $is_valid
588 0 0 unless $driver =~ /\b(virtio|e1000|rtl8139)\b/
591 0 0 unless $nic_name
594 0 0 unless $network_name
643 0 0 unless $is_valid
649 0 0 unless $nic_id
683 0 0 unless $vm_name
684 0 0 unless $cluster_name
685 0 0 unless $template_name
698 0 0 if ($memory) { }
701 0 0 unless $memory =~ /^\d+$/
773 0 0 if ($self->id) { }
779 0 0 if ($vmid) { }
782 0 0 unless $is_valid
798 0 0 if ($self->vm_boot_dev eq 'hd') { }
828 0 0 if ($self->id) { }
834 0 0 if ($vmid) { }
837 0 0 unless $is_valid
852 0 0 if ($self->vm_boot_dev eq 'hd') { }
881 0 0 if $self->id
886 0 0 if ($running_vms) { }
932 0 0 if (my $state = $self->get_vm_by_element_id($element_id, 'state') || $self->not_available)
934 0 0 if ($state ne 'up')
944 0 0 if (@attrs)
959 0 0 if (my $last_output = $self->get_vm_by_element_id($element_id, $last_element) || $self->not_available)
986 0 0 if ($self->id) { }
992 0 0 if ($vmid) { }
995 0 0 unless $is_valid
1011 0 0 if ($self->vm_boot_dev eq 'hd') { }
1041 0 0 if ($self->id) { }
1046 0 0 if ($vmid) { }
1049 0 0 unless $is_valid
1065 0 0 if ($self->vm_boot_dev eq 'hd') { }
1093 0 0 if ($self->id) { }
1099 0 0 if ($vmid) { }
1102 0 0 unless $is_valid
1118 0 0 if ($self->vm_boot_dev eq 'hd') { }
1143 0 0 unless $vmid
1151 0 0 if ($self->hash_output->{'vm'}[$element_id]{'id'} eq $vmid)
1211 0 0 if ($self->id) { }
0 0 elsif ($vmid) { }
1225 0 0 if (my $last_output = $self->get_vm_by_self_id($last_element) || $self->not_available)
1246 0 0 unless $self->hash_output->{'vm'}[$element_id]{'id'} eq $vmid
1251 0 0 unless $vmid_element >= 0
1265 0 0 if (my $last_output = $self->get_vm_by_element_id($vmid_element, $last_element) || $self->not_available)
1278 0 0 if (@attrs)
1293 0 0 if (my $last_output = $self->get_vm_by_element_id($element_id, $last_element) || $self->not_available)
1318 0 0 unless $self->hash_output
1324 0 0 if ($attr eq 'id') { }
0 0 elsif ($attr eq 'name') { }
0 0 elsif ($attr eq 'memory') { }
0 0 elsif ($attr eq 'state') { }
0 0 elsif ($attr eq 'description') { }
0 0 elsif ($attr eq 'cpu_cores') { }
0 0 elsif ($attr eq 'cpu_sockets') { }
0 0 elsif ($attr eq 'cpu_arch') { }
0 0 elsif ($attr eq 'cpu_shares') { }
0 0 elsif ($attr eq 'os_type') { }
0 0 elsif ($attr eq 'boot_dev') { }
0 0 elsif ($attr eq 'ha_enabled') { }
0 0 elsif ($attr eq 'ha_priority') { }
0 0 elsif ($attr eq 'display_type') { }
0 0 elsif ($attr eq 'display_address') { }
0 0 elsif ($attr eq 'display_port') { }
0 0 elsif ($attr eq 'display_host_subject') { }
0 0 elsif ($attr eq 'cluster_id') { }
0 0 elsif ($attr eq 'template_id') { }
0 0 elsif ($attr eq 'stop_time') { }
0 0 elsif ($attr eq 'creation_time') { }
0 0 elsif ($attr eq 'timezone') { }
0 0 elsif ($attr eq 'usb_enabled') { }
0 0 elsif ($attr eq 'host_id') { }
1388 0 0 if $self->hash_output->{'vm'}[$element_id]{'display'}{'secure_port'}
1440 0 0 unless $self->hash_output
1446 0 0 if ($attr eq 'id') { }
0 0 elsif ($attr eq 'name') { }
0 0 elsif ($attr eq 'memory') { }
0 0 elsif ($attr eq 'state') { }
0 0 elsif ($attr eq 'description') { }
0 0 elsif ($attr eq 'cpu_cores') { }
0 0 elsif ($attr eq 'cpu_sockets') { }
0 0 elsif ($attr eq 'cpu_arch') { }
0 0 elsif ($attr eq 'cpu_shares') { }
0 0 elsif ($attr eq 'os_type') { }
0 0 elsif ($attr eq 'boot_dev') { }
0 0 elsif ($attr eq 'ha_enabled') { }
0 0 elsif ($attr eq 'ha_priority') { }
0 0 elsif ($attr eq 'display_type') { }
0 0 elsif ($attr eq 'display_address') { }
0 0 elsif ($attr eq 'display_port') { }
0 0 elsif ($attr eq 'display_host_subject') { }
0 0 elsif ($attr eq 'cluster_id') { }
0 0 elsif ($attr eq 'template_id') { }
0 0 elsif ($attr eq 'stop_time') { }
0 0 elsif ($attr eq 'creation_time') { }
0 0 elsif ($attr eq 'timezone') { }
0 0 elsif ($attr eq 'usb_enabled') { }
0 0 elsif ($attr eq 'host_id') { }
1510 0 0 if $self->hash_output->{'display'}{'secure_port'}