Branch Coverage

blib/lib/NetApp/Filer.pm
Criterion Covered Total %
branch 5 136 3.6


line true false branch
114 0 0 if ($protocol_of{$ident} eq 'ssh') { }
116 0 0 if ($args{'telnet_password'})
122 0 0 if ($args{'ssh_identity'})
124 0 0 unless (-f $args{'ssh_identity'})
163 0 0 unless $args{'cache_enabled'}
173 0 0 if ($args{'cache_expiration'}) { }
210 0 0 if ($ENV{'NETAPP_TELNET_DEBUG'})
222 0 0 if ($@)
239 0 0 if ($protocol eq 'ssh') { }
261 0 0 if ($argument =~ /[()]/) { }
278 0 0 if ($error)
296 0 0 if ($results[0] =~ /$command/)
316 0 0 if ($result =~ /^snap reclaimable: Approximately/) { }
0 0 elsif ($result =~ /^vol size: .* has size/) { }
0 0 elsif ($result =~ /^snap delta: No snapshots exist/) { }
0 0 elsif ($result =~ /^$command_first:/ or $result =~ /^$command_first $command_second:/) { }
334 0 0 if (@stderr) { }
336 0 0 unless ($args{'nonfatal'})
367 0 0 if ($argument =~ /[()]/) { }
389 0 0 unless ($command_status_of{$ident})
398 0 0 if ($stderr and not $args{'nonfatal'})
441 0 0 unless ($cache_enabled_of{$ident})
445 0 0 unless (exists $cache_of{$ident}{$args{'method'}})
449 0 0 if ($args{'key'}) { }
474 0 0 if $line =~ /not licensed/
562 0 0 if ($$data{'name'})
603 0 0 if $line =~ /^\s+$/
613 0 0 if ($$aggregate{'status'}{'aggr'})
615 0 0 if $line =~ /^\s+$/
627 0 0 if $line =~ /^\s+$/
678 0 0 if ($args{'force'})
682 0 0 if ($args{'mirrored'})
686 0 0 if ($args{'raidtype'})
690 0 0 if ($args{'raidsize'})
694 0 0 if ($args{'disktype'})
698 0 0 if ($args{'rpm'})
702 0 0 if ($args{'snaplock'})
706 0 0 if ($args{'traditional'})
710 0 0 if ($args{'language'})
714 0 0 if ($args{'diskcount'})
715 0 0 if ($args{'disksize'}) { }
722 0 0 if ($args{'disks'})
723 0 0 if (ref $args{'disks'}[0] eq 'ARRAY') { }
773 0 0 if ($$data{'name'})
814 0 0 if $line =~ /^\s+$/
826 0 0 if $line =~ /^\s+$/
860 0 0 if ($args{'volume'} and $args{'volume'}->get_state('restricted'))
866 0 0 if ($args{'name'}) { }
0 0 elsif ($args{'volume'}) { }
889 0 0 if ($args{'name'}) { }
914 0 0 if ($args{'mode'})
924 0 0 unless ($qtree)
931 0 0 if (exists $args{'security'})
935 0 0 if (exists $args{'oplocks'})
950 0 0 unless ($state =~ /^(off|on)$/)
970 0 0 unless ($snapmirror_state_of{$ident} =~ /^(off|on)$/)
994 0 0 if ($args{'volume'})
1010 0 0 if ($line =~ /Snapmirror is (on|off)/)
1015 0 0 if ($line =~ /^\s*$/)
1016 0 0 if (keys %$snapmirror)
1031 0 0 if (keys %$snapmirror)
1090 0 0 if $line =~ /^#/
1091 0 0 if $line =~ /^\s*$/
1101 0 0 if ($temporary)
1102 0 0 if ($temporary->compare($permanent)) { }
1138 2 1 if ($fields[1] eq 'site') { }
1146 1 2 if ($line =~ /expired \((\d+ \w+ \d+)\)/)
1165 0 2 unless (defined $fields[1])