Branch Coverage

blib/lib/XAO/DO/Web/Condition.pm
Criterion Covered Total %
branch 56 72 77.7


line true false branch
93 23 184 if (defined $target and defined $pvalue) { }
94 17 6 if ($targop eq '=') { }
2 4 elsif ($targop eq '!') { }
2 2 elsif ($targop eq '<') { }
2 0 elsif ($targop eq '>') { }
108 0 210 unless &get_args(\@_)
116 58 215 unless $a =~ /^(\w+)\.(number|value|arg|cgiparam|length|siteconf|siteconfig|cookie|secure|clipboard)$/
117 0 215 if ($2 eq 'cgiparam') { }
3 212 elsif ($2 eq 'length') { }
194 18 elsif ($2 eq 'arg') { }
5 13 elsif ($2 eq 'siteconf' or $2 eq 'siteconfig') { }
3 10 elsif ($2 eq 'cookie') { }
0 10 elsif ($2 eq 'number') { }
0 10 elsif ($2 eq 'secure') { }
5 5 elsif ($2 eq 'clipboard') { }
2 3 elsif ($args{$a}) { }
121 0 0 if ($param =~ /^\s*(.*?)\s*(=|>|<|\!)\s*(.*?)\s*$/)
127 0 0 if (&check_target($pvalue, $target, $targop))
134 2 1 if (defined $param and length $param)
143 16 178 if ($param =~ /^\s*(.*?)\s*(=|>|<|\!)\s*(.*?)\s*$/)
148 194 0 if ($self->{'parent'})
151 175 19 if (&check_target($pvalue, $target, $targop))
161 2 3 if ($param =~ /^\s*(.*?)\s*(=|>|<|\!)\s*(.*?)\s*$/)
167 4 1 if (&check_target($pvalue, $target, $targop))
176 2 1 if ($param =~ /^\s*(.*?)\s*(=|>|<|\!)\s*(.*?)\s*$/)
182 2 1 if (&check_target($pvalue, $target, $targop))
188 0 0 if (($args{$a} || 0) + 0)
194 0 0 if ($self->is_secure)
203 3 2 if ($param =~ /^\s*(.*?)\s*(=|>|<|\!)\s*(.*?)\s*$/)
209 3 2 if (&check_target($pvalue, $target, $targop))
219 22 188 unless defined $name
225 0 745 if ($self->{'parent'} and $self->{'parent'}{'args'} and $a =~ /^$name\.pass\.(.*)$/) { }
122 623 elsif ($a eq "$name.pass") { }
398 225 elsif ($a =~ /^$name\.(\w.*)$/) { }
236 0 210 unless %objargs
245 122 88 if ($args{"$name.pass"}) { }