Branch Coverage

blib/lib/Mojolicious/Plugin/AssetPack/Util.pm
Criterion Covered Total %
branch 12 18 66.6


line true false branch
19 1 1 @_ > 1 ? :
21 0 2 if $pkg =~ s/.*::(AssetPack::)Pipe::/$1/
22 2 0 unless $pkg
23 0 2 $TOPIC ? :
38 2 367 if @_ > 1
46 0 18 unless ($module || '') =~ /^\w(?:[\w:']*\w)?$/
47 18 0 if $LOADED{$module} ||= eval "require $module; 1"
58 1 2 unless defined $_[1]
60 0 2 unless chdir $dir