Branch Coverage

blib/lib/CSS/Struct/Output.pm
Criterion Covered Total %
branch 38 38 100.0


line true false branch
41 9 32 if (ref $self->{'flush_code'} eq 'ARRAY') { }
46 6 35 if ($ouf)
48 2 4 unless print {$ouf;} $ret
53 2 37 if ($reset_flag)
69 2 133 if (ref $css_structure_ar ne 'ARRAY')
77 2 131 if ($type eq 'a') { }
20 111 elsif ($type eq 'c') { }
24 87 elsif ($type eq 'd') { }
35 52 elsif ($type eq 'e') { }
3 49 elsif ($type eq 'i') { }
2 47 elsif ($type eq 'r') { }
43 4 elsif ($type eq 's') { }
111 2 2 unless ($self->{'skip_bad_types'})
118 2 39 if ($self->{'auto_flush'})
147 4 103 if ($arg_num < $min_arg_num or $arg_num > $max_arg_num)
158 1 42 unless ($self->{'open_selector'})
194 2 34 if (defined $self->{'output_handler'} and not defined &openhandle($self->{'output_handler'}))
200 2 32 if ($self->{'auto_flush'} and not defined $self->{'output_handler'})
205 4 26 if (ref $self->{'comment_delimeters'} ne 'ARRAY' or &none(sub { $_ eq $self->{'comment_delimeters'}[0]; } , '/*', ''))