Branch Coverage

script/ospfview
Criterion Covered Total %
branch 1 66 1.5


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
117 0 0 if ($pid)
119 0 0 if (waitpid($pid, 1) > 0)
120 0 0 if $? and WIFEXITED($?) && WEXITSTATUS($?) != 0 || WIFSIGNALED($?) && WTERMSIG($?) != 15
129 0 0 $ipv6 ? :
130 0 0 if ($legend)
133 0 0 unless $pid = open2(undef, $fh, @cmd)
136 0 0 unless close $fh
145 0 0 if ($oldtime)
147 0 0 if ($sleeptime > 0)
153 0 0 $ipv6 ? :
156 0 0 if ($@)
158 0 0 if $pid
163 0 0 if (defined $ipv6 and $ipv6 != $yamlospf->ipv6)
168 0 0 if $oldyaml and $oldyaml eq $yaml and not $gone or $term
169 0 0 if ($dump)
172 0 0 if ($diff and $oldyaml)
189 0 0 if ($todo{'verbose'})
191 0 0 if @errors
196 0 0 unless sigprocmask(0, $chldsigset, $oldsigset)
198 0 0 if ($pid)
200 0 0 if (waitpid($pid, 0) > 0)
201 0 0 if $? and WIFEXITED($?) && WEXITSTATUS($?) != 0 || WIFSIGNALED($?) && WTERMSIG($?) != 15
208 0 0 unless sigprocmask(2, $oldsigset, undef)
212 0 0 unless $pid = open2(undef, $fh, @cmd)
215 0 0 unless close $fh