Branch Coverage

blib/lib/Module/Used.pm
Criterion Covered Total %
branch 34 42 80.9


line true false branch
52 0 1 unless $fullpath = module_path($module)
65 0 20 unless my $document = 'PPI::Document'->new(\$string, 'readonly', 1)
78 20 2 if ($includes)
81 34 3 if ($module)
84 6 28 if ($module eq 'base' or $module eq 'parent')
94 6 14 if ($modules{'Moose'}) { }
3 11 elsif ($modules{'Moose::Role'}) { }
114 0 2 unless -e $source
117 0 2 unless -r _
120 0 2 if -d _
123 0 2 if (-z _)
128 0 2 unless my $document = 'PPI::Document'->new($source, 'readonly', 1)
146 2 4 if (@children and $children[0] =~ / v? [\d.]+ /msx)
153 7 10 if ($child->isa('PPI::Token::Quote')) { }
1 9 elsif ($child->isa('PPI::Token::QuoteLike::Words')) { }
170 6 9 unless $statements
177 6 9 if ($child->isa('PPI::Token::Quote')) { }
3 6 elsif ($child->isa('PPI::Token::QuoteLike::Words')) { }
198 310 20 if ref $element ne 'PPI::Statement'
201 0 20 unless $first_child
202 5 15 unless $first_child->isa('PPI::Token::Word')