Branch Coverage

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


line true false branch
40 9 32 if (ref $self->{'flush_code'} eq 'ARRAY') { }
45 6 35 if ($ouf)
47 2 4 unless print {$ouf;} $ret
52 2 37 if ($reset_flag)
68 2 133 if (ref $css_structure_ar ne 'ARRAY')
76 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') { }
110 2 2 unless ($self->{'skip_bad_types'})
117 2 39 if ($self->{'auto_flush'})
146 4 103 if ($arg_num < $min_arg_num or $arg_num > $max_arg_num)
157 1 42 unless ($self->{'open_selector'})
193 2 34 if (defined $self->{'output_handler'} and ref $self->{'output_handler'} ne 'GLOB')
199 2 32 if ($self->{'auto_flush'} and not defined $self->{'output_handler'})
204 4 26 if (ref $self->{'comment_delimeters'} ne 'ARRAY' or &none(sub { $_ eq $self->{'comment_delimeters'}[0]; } , '/*', ''))