Branch Coverage

blib/lib/CSS/LESS.pm
Criterion Covered Total %
branch 24 38 63.1


line true false branch
34 11 69 if (defined $params{$_}) { }
51 7 0 unless (defined $$s{'is_lessc_installed'})
52 1 6 if ($s->is_lessc_installed == 0 and $$s{'dont_die'} == 0)
57 3 3 unless (%params)
63 35 25 if (not defined $params{$_} and defined $$s{$_})
83 7 4 if ($$s{'dry_run'})
90 4 0 if ($@)
91 0 0 if (defined $lessc_ver and $lessc_ver =~ /^lessc .*(LESS Compiler).*/i)
108 6 4 if ($$s{'dry_run'})
123 0 0 if ($? != 0)
125 0 0 unless ($$s{'dont_die'})
126 0 0 if (defined $ret) { }
134 0 0 if (defined $path_tmpfile)
151 6 4 if (defined $options{'content'})
164 2 8 if (defined $options{'include_paths'})
165 0 2 if (@{$options{'include_paths'};} <= 1) { }
181 0 70 if (defined $options{$key} and !defined($DEFAULT_PARAMS{$key}) || $DEFAULT_PARAMS{$key} ne 'false') { }
15 55 elsif (defined $options{$key} and $options{$key} eq 'false' || $options{$key} == '0' and $DEFAULT_PARAMS{$key} eq 'false') { }
7 48 elsif (exists $options{$key}) { }