Branch Coverage

script/ospf2dot
Criterion Covered Total %
branch 15 30 50.0


line true false branch
28 5 1 if @_
76 0 6 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; } , "e", sub { $todo{'external'}{'generate'} = 1; } , "E", sub { $todo{'external'}{'aggregate'} = 1; } , "h", sub { &usage(); } , "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; } )
77 0 6 if @ARGV > 2
80 12 8 unless $todo{$option}
5 15 if (keys %{{} unless $todo{$option};} > 1)
86 0 1 if ($todo{'prefix'})
88 0 0 if $todo{'prefix'}{'generate'}
91 0 1 if ($legend)
92 0 0 $ipv6 ? :
98 1 0 if (@ARGV > 0) { }
105 0 1 if (defined $ipv6 and $ipv6 != $yaml->ipv6)
108 0 1 $yaml->ipv6 ? :
111 0 1 if ($todo{'verbose'})
113 0 0 if @errors
115 1 0 if (@ARGV > 1) { }