Branch Coverage

script/ospfview
Criterion Covered Total %
branch 1 68 1.4


line true false branch
33 0 1 if @_
91 0 0 unless &GetOptions(4, sub { $ipv6 = 0; } , 6, sub { $ipv6 = 1; } , "b", sub { $todo{'boundary'}{'generate'} = 1; } , "B", sub { $todo{'boundary'}{'aggregate'} = 1; } , "c", sub { $todo{'cluster'} = 1; } , "d", \$diff, "D", \$dump, "e", sub { $todo{'external'}{'generate'} = 1; } , "E", sub { $todo{'external'}{'aggregate'} = 1; } , "h", sub { &usage(); } , "H=s", \$ssh, "I=i", \$interval, "l", \$legend, "p", sub { $todo{'prefix'}{'generate'} = 1; } , "P", sub { $todo{'prefix'}{'aggregate'} = 1; } , "s", sub { $todo{'summary'}{'generate'} = 1; } , "S", sub { $todo{'summary'}{'aggregate'} = 1; } , "w", sub { $todo{'warning'}{'single'} = 1; } , "W", sub { $todo{'warning'}{'all'} = 1; } , "v", sub { $todo{'verbose'} = 1; } )
92 0 0 if @ARGV > 0
95 0 0 unless $todo{$option}
0 0 if (keys %{{} unless $todo{$option};} > 1)
101 0 0 if ($todo{'prefix'})
103 0 0 if $todo{'prefix'}{'generate'}
111 0 0 if $pid
116 0 0 if $pid
122 0 0 if ($pid)
124 0 0 if (waitpid($pid, 1) > 0)
125 0 0 if $? and WIFEXITED($?) && WEXITSTATUS($?) != 0 || WIFSIGNALED($?) && WTERMSIG($?) != 15
134 0 0 $ipv6 ? :
135 0 0 if ($legend)
138 0 0 unless $pid = open2(undef, $fh, @cmd)
141 0 0 unless close $fh
150 0 0 if ($oldtime)
152 0 0 if ($sleeptime > 0)
158 0 0 $ipv6 ? :
161 0 0 if ($@)
163 0 0 if $pid
168 0 0 if (defined $ipv6 and $ipv6 != $yamlospf->ipv6)
173 0 0 if $oldyaml and $oldyaml eq $yaml and not $gone or $term
174 0 0 if ($dump)
177 0 0 if ($diff and $oldyaml)
194 0 0 if ($todo{'verbose'})
196 0 0 if @errors
201 0 0 unless sigprocmask(0, $chldsigset, $oldsigset)
203 0 0 if ($pid)
205 0 0 if (waitpid($pid, 0) > 0)
206 0 0 if $? and WIFEXITED($?) && WEXITSTATUS($?) != 0 || WIFSIGNALED($?) && WTERMSIG($?) != 15
213 0 0 unless sigprocmask(2, $oldsigset, undef)
217 0 0 unless $pid = open2(undef, $fh, @cmd)
220 0 0 unless close $fh