Branch Coverage

blib/lib/NetApp/Volume.pm
Criterion Covered Total %
branch 28 80 35.0


line true false branch
73 0 0 if ($args{'aggregate_name'})
77 0 0 if ($args{'source'})
84 0 0 if ($args{'parent_name'})
88 0 0 if ($args{'snapshot_of'})
134 0 0 if (exists $options_of{$ident}{$option}) { }
146 0 0 $option eq 'root' ? :
156 0 0 if ($option eq 'root') { }
202 0 0 if ($line =~ /Volume language is (\S+)/)
207 0 0 unless ($language)
245 0 0 if ($line =~ /has size (\S+)\./)
250 0 0 unless ($size)
284 0 0 if ($line =~ /is currently (\d+)/)
289 0 0 unless ($maxfiles)
333 0 0 $self->get_parent_name ? :
338 0 0 if ($self->is_clone) { }
488 0 0 if ($line =~ /^$name\s*:\s*(.*)/)
491 0 0 if $value eq '(not specified)'
495 0 0 unless ($found)
528 0 0 unless $_->get_path eq $self->get_path
560 0 0 if ($args{'exportas'}) { }
593 0 0 if ($args{'cifsdelaytime'})
621 0 0 if ($args{'force'})
670 0 0 if ($args{'cifsdelaytime'})
696 1 5 unless my($volume) = $header =~ /(^\s+Volume\s+)/
704 1 4 unless my($state) = $header =~ /(State\s+)/
712 1 3 unless my($status) = $header =~ /(Status\s+)/
720 1 2 unless my($options) = $header =~ /(Options\s*)/
727 1 1 if ($header =~ /Source/)
755 0 4 if ($line =~ /Clone, backed by volume '(.*)', snapshot '(.*)'/) { }
0 4 elsif ($line =~ /Volume has clones: (.*)/) { }
0 4 elsif ($line =~ /Containing aggregate: (\S+)/) { }
771 0 0 if ($aggrname ne '')
778 0 4 if (length $line < $$indices{'length'})
786 3 17 unless $$indices{$column}
788 13 4 if (defined $$indices{$column}[1]) { }
799 4 13 if ($column eq 'volume') { }
1 12 elsif ($column eq 'source') { }
801 2 2 if ($value)
807 1 1 if (length $name > length $value)
833 8 7 if ($entry =~ /=/) { }