Branch Coverage

blib/lib/Class/Discover.pm
Criterion Covered Total %
branch 22 30 73.3


line true false branch
22 0 4 if (ref $$opts{'keywords'} || '') ne 'ARRAY'
30 0 4 unless $dir->is_absolute
33 0 4 if ((ref $$opts{'files'} || '') eq 'ARRAY') { }
1 3 elsif ($$opts{'files'}) { }
3 0 elsif ($dir) { }
43 3 0 unless $$no_index{'directory'}
44 2 1 unless $$no_index{'file'}
49 0 4 unless @files
78 104 10 unless $_[1]->isa('PPI::Token::Word') and $$opts{'keywords'}{$_[1]->content}
81 9 6 unless $nodes
91 0 10 unless $n and $n->isa('PPI::Token::Word')
95 2 8 if $class =~ /^::/
101 0 10 unless ($n)
114 25 5 if $_->isa('PPI::Token')
127 4 6 if defined $ver and $ver ne 'undef'