Branch Coverage

blib/lib/Mojolicious/Plugin/Bootstrap3.pm
Criterion Covered Total %
branch 13 46 28.2


line true false branch
269 2 0 ref $self ? :
272 1 0 if -d $_
1 1 if $type and $type eq 'sass'
334 1 0 unless eval { do { $app->asset } }
337 0 1 if $config->{'theme'}
340 0 1 $config->{'css'} ? :
341 0 1 $config->{'js'} ? :
342 1 0 if $config->{'jquery'} or @js and $config->{'jquery'} // 1
344 0 1 if ($config->{'custom'})
346 0 0 ref $config->{'custom'} eq 'ARRAY' ? :
349 0 1 if ($config->{'theme'}) { }
1 0 elsif (@css) { }
358 1 0 if (@js)
364 0 0 ref $_[-1] eq 'CODE' ? :
370 0 0 unless my $destination = $self->_destination_file($app, $to)
371 0 0 unless -d dirname($destination)
386 0 0 if -e $destination
388 0 0 if -w dirname($destination_dir)
404 0 0 if ($url =~ m[/_bootswatch\.scss]) { }
406 0 0 if $destination and not -e $destination
413 0 0 if ($destination and not -e $destination)
419 0 0 if $OVERRIDE
434 0 0 unless File::Copy::move($from, $to)