Branch Coverage

blib/lib/JS.pm
Criterion Covered Total %
branch 15 36 41.6


line true false branch
16 0 4 unless (@args)
21 0 4 unless my(@path) = $self->find_js_path($js_module)
31 0 0 unless -f $_
32 0 0 if /\.(?:pm|pod|packlist)$/
33 0 0 if /^\./
35 0 0 unless $dir =~ s[.*/JS\b(/|$)(.*)][$2]
36 0 0 $dir ? :
37 0 0 if ($module =~ s/\.js$//)
40 0 0 if $$found{$module}++
43 0 0 if -d $_
49 4 0 unless ($module =~ m[/])
61 16 40 if -d $_
62 4 36 if $path =~ m[[\\/]$module\.pm$]i
63 4 32 if $path =~ m[[\\/]$module\.pod$]i
64 6 26 if $path =~ m[[\\/]$module$]i
65 4 22 if $path =~ m[[\\/]$module\.js(?:\.gz)?$]i
68 0 10 if $$found{$path}++
71 4 0 if -d $_