Branch Coverage

blib/lib/Text/Sass.pm
Criterion Covered Total %
branch 98 128 76.5


line true false branch
33 26 3 unless (scalar @args % 2)
35 1 25 if ($args->{'Functions'})
37 0 1 unless eval "require $functions"
50 53 0 unless ($ref)
61 0 3 unless (ref $self)
74 0 28 unless (ref $self)
89 0 24 unless (ref $self)
101 0 169 if $DEBUG
123 0 166 if $DEBUG
146 0 3 if $DEBUG
155 0 4 if $DEBUG
176 0 2 if $DEBUG
190 1 1 $argstr ? :
192 1 1 $varstr ? :
205 0 2 if $DEBUG
226 0 2 if $DEBUG
243 0 1 if $DEBUG
270 0 1 if $DEBUG
292 0 86 if $DEBUG
294 2 84 if ($val =~ /^\s*$/msx) { }
309 71 169 if ($line =~ /^([ ]+)(\S.*)$/msx)
312 28 43 unless ($self->{'_sass_indent'})
316 70 1 if ($line =~ /^[ ]{$self->{'_sass_indent'}}(\S.*)$/msx) { }
319 92 0 if ($l =~ /^[ ]{$self->{'_sass_indent'}}(.*)$/msx) { }
0 0 elsif (not $l =~ /^\s*$/msx) { }
332 0 70 if $DEBUG
356 0 62 if $DEBUG
357 0 62 if $DEBUG
360 0 61 if $DEBUG
361 0 61 if $DEBUG
365 0 237 if $DEBUG and $line
397 66 2760 if ($char eq '{')
401 66 2760 if ($char eq '}')
403 52 14 if ($indent == 0)
423 59 2042 if ($char eq ';' and $indent == 0) { }
431 12 2089 if ($char eq '{')
435 12 2089 if ($char eq '}')
437 11 1 if ($indent == 0)
468 0 11 if $DEBUG
481 3 49 if ($tokens =~ /^\s*\@mixin\s+(.*)$/msx)
485 0 3 if $DEBUG
496 0 70 unless ($kv)
500 11 59 if ($kv =~ /[{].*[}]/msx)
505 4 55 if ($kv =~ /^\s*\@include\s+(.*?)(?:[(](.*?)[)])?$/msx)
510 1 3 $argstr ? :
513 1 3 $varstr ? :
524 0 4 if $DEBUG
528 1 54 if ($kv =~ /^\s*\@extend\s+(.*?)$/msx)
574 6 101 if ($k =~ /&/msx)
583 0 107 if (not ref $stash_line->{$k}) { }
592 3 160 if ($attr =~ /^[+]/msx)
596 3 160 if ($attr =~ /:$/msx)
612 38 122 if (ref $val)
613 35 3 if ($attr)
616 35 3 $attr ? :
618 1 37 if ($k =~ /,/msx)
622 3 35 if ($attr =~ /,/msx)
639 97 10 unless ($str =~ /[{]\s*[}]/msx)
658 0 7 unless $vars->{$1}
659 11 24 unless $vars->{$1}
679 7 9 unless ($implementor)
687 6 1 if ($end =~ /repeat|left|top|right|bottom/msx)
713 11 148 if (scalar @parts == $BINARY_OP_PARTS)
715 8 3 if (defined $ret)