Branch Coverage

blib/lib/POE/XUL/Style.pm
Criterion Covered Total %
branch 29 38 76.3


line true false branch
82 16 3 if $init
97 0 17 unless defined $string
101 4 38 if ($string =~ s[^(\s*/\*[^*]*\*+([^/*][^*]*\*+)*/\s*)][]s) { }
0 38 elsif ($string =~ s/^(\s+)//s) { }
38 0 elsif ($string =~ s/^((-?[_a-z][-_a-zA-Z]*)\s*:\s*(.*?)\s*(\Z|;\s*))//is) { }
107 0 0 if (@{$self->{'text'};} and $self->{'text'}[-1] =~ /\s+$/) { }
133 37 33 if ($self->{'prop'}{$key}) { }
3 30 elsif ($EQUIV{$key} and $self->{'prop'}{$EQUIV{$key}}) { }
26 4 elsif ($SUBSET{$key}) { }
142 26 0 if ($value)
145 26 0 if $n > 0
148 4 66 unless defined $rv
160 9 9 if (not $prop) { }
162 0 9 if not $value and $key eq 'display'
165 3 6 if @{$self->{'text'};} and not $self->{'text'}[-1] =~ m[[;/]\s*$]s
174 5 4 if (not $value and $key eq 'display') { }
183 8 10 if $POE::XUL::Node::CM
193 0 62 if $key =~ /DESTROY$/
197 44 18 if (1 == @_) { }