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'} ? :
257 0 0 defined $self->{'ucs'} ? :
262 0 0 defined $args{'self'} ? :
268 0 0 defined $args{'class_filter'} ? :
270 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'}) { }
291 0 0 defined $xml->{'outConfigs'}{$args{'type'}} ? :
303 0 0 unless $args{'id'}
306 0 0 if $args{'id'} and $$ref{$args{'attr'}}{$args{'id'}}
325 0 0 defined $self->{'fault'}{$id} ? :
354 0 0 unless $inHierarchical =~ /true|false|0|1/
356 0 0 if $inHierarchical =~ /^true|false$/
358 0 0 $inHierarchical == 0 ? :
364 0 0 unless (defined $args{'classId'})
372 0 0 if $property eq 'inHierarchical' or $property eq 'classId'
385 0 0 unless (defined $args{'classId'})
393 0 0 defined $args{'inHierarchical'} ? :
399 0 0 unless my $xml = $self->_ucsm_request('')
407 0 0 unless (defined $args{'classId'})
415 0 0 defined $args{'inHierarchical'} ? :
422 0 0 unless my $xml = $self->_ucsm_request('' . '', 'classId')
431 0 0 unless (defined $args{'dn'})
439 0 0 defined $args{'inHierarchical'} ? :
444 0 0 unless my $xml = $self->_ucsm_request('')
453 0 0 unless (defined $args{'dn'})
461 0 0 defined $args{'inHierarchical'} ? :
467 0 0 unless my $xml = $self->_ucsm_request('')
479 0 0 defined $args{'inHierarchical'} ? :
482 0 0 unless my $filter = $self->_createFilter(%args)
489 0 0 unless my $xml = $self->_ucsm_request('' . $filter . '', $args{'classId'})
497 0 0 unless my $xml = $self->resolve_dn('dn', 'sys')
504 0 0 defined $xml->{'outConfig'}{'topSystem'} ? :
509 0 0 unless my $xml = $self->resolve_dn('dn', 'sys/mgmt/fw-system')
516 0 0 defined $xml->{'outConfig'}{'firmwareRunning'}{'version'} ? :
523 0 0 defined $self->{'mgmt_entity'}{$id} ? :
548 0 0 unless my $xml = $self->resolve_class_filter('classId', 'mgmtEntity', 'leadership', 'primary')
558 0 0 defined $xml->{'outConfigs'}{'mgmtEntity'} ? :
563 0 0 unless my $xml = $self->resolve_class_filter('classId', 'mgmtEntity', 'leadership', 'subordinate')
572 0 0 defined $xml->{'outConfigs'}{'mgmtEntity'} ? :
580 0 0 defined $self->{'service_profile'}{$id} ? :
611 0 0 defined $self->{'interconnect'}{$id} ? :
638 0 0 defined $self->{'blade'}{$id} ? :
669 0 0 defined $self->{'chassis'}{$id} ? :
725 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'})
739 0 0 defined $args{'admin_state'} ? :
745 0 0 defined $args{'preserve_pooled_values'} ? :
748 0 0 unless ($args{'backup_type'} =~ /(config-all|full-state|config-system|config-logical)/i)
753 0 0 unless ($args{'backup_proto'} =~ /^((t|s)?ftp)|(scp)$/i)
776 0 0 unless my $xml = $self->_ucsm_request($data)
778 0 0 if (defined $xml->{'errorCode'})
780 0 0 defined $xml->{'errorDescr'} ? :