Branch Coverage

lib/CSS/LESS/Filter.pm
Criterion Covered Total %
branch 43 56 76.7


line true false branch
13 0 16 unless my $parser = 'Parse::RecDescent'->new($class->_less_grammar)
18 0 16 if @_
33 9 7 if $$_[2]
34 3 4 if ($mode eq 'warn')
38 4 0 if ($mode eq 'append')
40 0 4 if (ref $id)
47 3 1 !ref($filter) ? :
48 0 4 if length $res and substr($res, -1) ne "\n"
49 1 3 if ($id eq '') { }
1 2 elsif ($type eq '{') { }
54 0 1 if substr($res, -1) ne "\n"
58 1 1 if $closing_braces
70 0 16 if @_ and @_ % 2
90 22 18 if (not ref $part) { }
18 0 elsif (ref $part eq ref {}) { }
94 6 12 if (ref $$part{'value'} eq ref []) { }
95 0 6 length $id ? :
101 0 6 if $$_[0] eq ''
102 2 4 if (not ref $$_[0] and $new_id eq $$_[0] or ref $$_[0] eq ref qr// and $new_id =~ /$$_[0]/)
106 1 1 if (not ref $$_[1]) { }
1 0 elsif (ref $$_[1] eq ref sub { } ) { }
115 0 6 unless defined $inside
122 6 6 length $id ? :
124 1 11 if $$_[0] eq ''
125 8 3 if (not ref $$_[0] and $cur_id eq $$_[0] or ref $$_[0] eq ref qr// and $cur_id =~ /$$_[0]/)
129 6 2 if (not ref $$_[1]) { }
2 0 elsif (ref $$_[1] eq ref sub { } ) { }
138 3 9 unless defined $$part{'value'}