Branch Coverage

blib/lib/MojoX/DirectoryListing/Icons.pm
Criterion Covered Total %
branch 10 12 83.3


line true false branch
18 10 54 if ($name eq "..")
21 16 38 if ($item->{'is_dir'})
24 1 37 if ($name eq "README")
27 0 37 if ($name =~ /Makefile($|\.)/i)
31 27 10 if ($type =~ /^( ad[abs] | asm | s | bat | cmd | c | h | xs | cf[cm] | cfml | clj | cpp | cc | cxx | m | hpp | hh | hxx | css? | pas | int | dfm | nfm | dof | dpk | dproj | el | erl | hrl | f | f\d\d | for | ftn | fpp | go | groovy | gtmpl | gpp | grunit | hs | lhs | html? | [sx]html | java | properties | js | jspx? | jhtm | jhtml | li?sp | lua | mas | mhtml | mpl | mtxt | mm | mli? | pir | pasm | pmc | ops | pod | pg | tg | pl | pm6? | pod | t | php[t345]? | phtml | c?pt | metadata | cpy | py | Rakefiles | rb | rhtml | rjs | rxml | erb | rake | spec | scala | scm | ss | sh | bash | csh | tcsh | ksh | zsh | st | sql | ctl | i?tcl | itl | tex | cls | sty | te?xt | latex | tt | tt2 | ttml | bas | cls | frm | ctl | vb | resx | v | vh | sv | vhd | vhdl | vim | yaml | yml | xml | dtd | xslt? | ent | json | ini | Changes )$/xi)
50 10 0 if ($type =~ /^( jpe?g | gif | png | tiff? | icon? | xbm | ps )$/xi)