Branch Coverage

blib/lib/Cisco/UCS.pm
Criterion Covered Total %
branch 0 132 0.0


line true false branch
33 0 0 defined $args{'cluster'} ? :
37 0 0 defined $args{'username'} ? :
41 0 0 defined $args{'passwd'} ? :
45 0 0 defined $args{'verify_hostname'} ? :
97 0 0 unless ($res->is_success)
105 0 0 if (defined $xml->{'errorCode'})
108 0 0 defined $xml->{'errorDescr'} ? :
130 0 0 unless ($res->is_success)
137 0 0 if (defined $xml->{'errorCode'})
140 0 0 defined $xml->{'errorDescr'} ? :
154 0 0 unless $self->{'cookie'}
159 0 0 $self->_ucsm_request('') ? :
170 0 0 unless $res->is_success
178 0 0 $class_id ? :
184 0 0 $xml->{'errorCode'} ? :
186 0 0 $xml->{'errorDescr'} ? :
262 0 0 defined $self->{'ucs'} ? :
267 0 0 defined $args{'self'} ? :
273 0 0 defined $args{'class_filter'} ? :
275 0 0 if (ref $xml->{'outConfigs'}{$args{'type'}} eq 'ARRAY') { }
0 0 elsif (ref $xml->{'outConfigs'}{$args{'type'}} eq 'HASH' and exists $xml->{'outConfigs'}{$args{'type'}}{'dn'}) { }
296 0 0 defined $xml->{'outConfigs'}{$args{'type'}} ? :
310 0 0 unless $args{'id'}
313 0 0 if $args{'id'} and $$ref{$args{'attr'}}{$args{'id'}}
332 0 0 defined $self->{'fault'}{$id} ? :
361 0 0 unless $inHierarchical =~ /true|false|0|1/
363 0 0 if $inHierarchical =~ /^true|false$/
365 0 0 $inHierarchical == 0 ? :
371 0 0 unless (defined $args{'classId'})
379 0 0 if $property eq 'inHierarchical' or $property eq 'classId'
392 0 0 unless (defined $args{'classId'})
400 0 0 defined $args{'inHierarchical'} ? :
406 0 0 unless my $xml = $self->_ucsm_request('')
414 0 0 unless (defined $args{'classId'})
422 0 0 defined $args{'inHierarchical'} ? :
429 0 0 unless my $xml = $self->_ucsm_request('' . '', 'classId')
438 0 0 unless (defined $args{'dn'})
446 0 0 defined $args{'inHierarchical'} ? :
451 0 0 unless my $xml = $self->_ucsm_request('')
460 0 0 unless (defined $args{'dn'})
468 0 0 defined $args{'inHierarchical'} ? :
474 0 0 unless my $xml = $self->_ucsm_request('')
486 0 0 defined $args{'inHierarchical'} ? :
489 0 0 unless my $filter = $self->_createFilter(%args)
496 0 0 unless my $xml = $self->_ucsm_request('' . $filter . '', $args{'classId'})
504 0 0 unless my $xml = $self->resolve_dn('dn', 'sys')
511 0 0 defined $xml->{'outConfig'}{'topSystem'} ? :
516 0 0 unless my $xml = $self->resolve_dn('dn', 'sys/mgmt/fw-system')
523 0 0 defined $xml->{'outConfig'}{'firmwareRunning'}{'version'} ? :
530 0 0 defined $self->{'mgmt_entity'}{$id} ? :
555 0 0 unless my $xml = $self->resolve_class_filter('classId', 'mgmtEntity', 'leadership', 'primary')
565 0 0 defined $xml->{'outConfigs'}{'mgmtEntity'} ? :
570 0 0 unless my $xml = $self->resolve_class_filter('classId', 'mgmtEntity', 'leadership', 'subordinate')
579 0 0 defined $xml->{'outConfigs'}{'mgmtEntity'} ? :
587 0 0 defined $self->{'service_profile'}{$id} ? :
618 0 0 defined $self->{'interconnect'}{$id} ? :
645 0 0 defined $self->{'blade'}{$id} ? :
676 0 0 defined $self->{'chassis'}{$id} ? :
732 0 0 unless (defined $args{'backup_type'} and defined $args{'backup_proto'} and defined $args{'backup_host'} and defined $args{'backup_target'} and defined $args{'backup_passwd'} and defined $args{'backup_username'})
746 0 0 defined $args{'admin_state'} ? :
752 0 0 defined $args{'preserve_pooled_values'} ? :
755 0 0 unless ($args{'backup_type'} =~ /(config-all|full-state|config-system|config-logical)/i)
760 0 0 unless ($args{'backup_proto'} =~ /^((t|s)?ftp)|(scp)$/i)
783 0 0 unless my $xml = $self->_ucsm_request($data)
785 0 0 if (defined $xml->{'errorCode'})
787 0 0 defined $xml->{'errorDescr'} ? :