Branch Coverage

blib/lib/Text/Sass.pm
Criterion Covered Total %
branch 92 122 75.4


line true false branch
30 41 0 unless ($ref)
41 0 3 unless (ref $self)
54 0 26 unless (ref $self)
69 0 14 unless (ref $self)
81 0 163 if $DEBUG
103 0 160 if $DEBUG
126 0 2 if $DEBUG
135 0 2 if $DEBUG
156 0 2 if $DEBUG
170 1 1 $argstr ? :
172 1 1 $varstr ? :
185 0 2 if $DEBUG
206 0 2 if $DEBUG
223 0 1 if $DEBUG
250 0 1 if $DEBUG
272 0 83 if $DEBUG
274 2 81 if ($val =~ /^\s*$/msx) { }
289 69 161 if ($line =~ /^([ ]+)(\S.*)$/msx)
292 26 43 unless ($self->{'_sass_indent'})
296 68 1 if ($line =~ /^[ ]{$self->{'_sass_indent'}}(\S.*)$/msx) { }
299 91 0 if ($l =~ /^[ ]{$self->{'_sass_indent'}}(.*)$/msx) { }
0 0 elsif (not $l =~ /^\s*$/msx) { }
312 0 68 if $DEBUG
336 0 60 if $DEBUG
337 0 60 if $DEBUG
340 0 59 if $DEBUG
341 0 59 if $DEBUG
345 0 227 if $DEBUG and $line
377 54 2345 if ($char eq '{')
381 54 2345 if ($char eq '}')
383 40 14 if ($indent == 0)
403 47 1741 if ($char eq ';' and $indent == 0) { }
411 12 1776 if ($char eq '{')
415 12 1776 if ($char eq '}')
417 11 1 if ($indent == 0)
442 0 2 if $DEBUG
455 3 37 if ($tokens =~ /^\s*\@mixin\s+(.*)$/msx)
459 0 3 if $DEBUG
470 0 58 unless ($kv)
474 11 47 if ($kv =~ /[{].*[}]/msx)
479 4 43 if ($kv =~ /^\s*\@include\s+(.*?)(?:[(](.*?)[)])?$/msx)
484 1 3 $argstr ? :
487 1 3 $varstr ? :
498 0 4 if $DEBUG
502 1 42 if ($kv =~ /^\s*\@extend\s+(.*?)$/msx)
548 6 87 if ($k =~ /&/msx)
557 0 93 if (not ref $stash_line->{$k}) { }
566 3 145 if ($attr =~ /^[+]/msx)
570 3 145 if ($attr =~ /:$/msx)
586 38 107 if (ref $val)
587 35 3 if ($attr)
590 35 3 $attr ? :
592 1 37 if ($k =~ /,/msx)
596 3 35 if ($attr =~ /,/msx)
613 83 10 unless ($str =~ /[{]\s*[}]/msx)
629 0 6 unless $vars->{$1}
630 2 12 unless $vars->{$1}
649 6 2 unless ($functions->can($func))
657 6 0 if ($end =~ /repeat|left|top|right|bottom/msx)
682 10 122 if (scalar @parts == $BINARY_OP_PARTS)
684 7 3 if (defined $ret)