Branch Coverage

blib/lib/App/PrereqGrapher.pm
Criterion Covered Total %
branch 17 46 36.9


line true false branch
87 0 0 unless &GetOptions('h|help', \$options{'help'}, 'd|depth=i', \$options{'depth'}, 't|timeout=i', \$options{'timeout'}, 'o|output-file=s', \$options{'output_file'}, 'nc|no-core', \$options{'no_core'}, 'nrc|no-recurse-core', \$options{'no_recurse_core'}, 'v|verbose', \$options{'verbose'}, 'dot', \$format{'dot'}, 'svg', \$format{'svg'}, 'gml', \$format{'gml'}, 'vcg', \$format{'vcg'}, 'html', \$format{'html'})
89 0 0 if $options{'help'}
92 0 0 unless $format{$format}
94 0 0 if (keys %format > 1)
98 0 0 unless keys %format == 1
100 0 0 if ($options{'no_core'} and $options{'no_recurse_core'})
105 0 0 unless defined $options{$_}
130 40 23 if $seen{$module}
133 22 1 if (defined($path = module_path($module))) { }
0 1 elsif (-f $module) { }
137 0 1 if $self->verbose
144 0 22 if $@
148 31 50 if (not exists $depth{$dep} or $depth{$dep} > $depth{$module} + 1)
151 0 81 if ($self->no_core and is_core($dep)) { }
8 73 elsif ($dep eq 'perl') { }
157 12 61 if $self->depth and $depth{$dep} >= $self->depth
158 61 0 unless $self->no_recurse_core and is_core($dep)
164 0 2 unless open $fh, '>', $filename
168 0 2 if $self->verbose
174 0 0 @_ > 0 ? :
176 0 0 unless defined(my $first_release = Module::CoreList::first_release($module))
177 0 0 unless $version >= $first_release
178 0 0 unless defined(my $final_release = Module::CoreList::removed_from($module))