Branch Coverage

lib/CGI/ValidOp/Param.pm
Criterion Covered Total %
branch 40 44 90.9


line true false branch
29 0 660 unless $self->set_name($args)
32 61 599 if grep /^required$/, $self->checks
43 3117 1069 unless @_
45 31 1038 if defined $tainted and $tainted eq ''
54 1 439 if @_
58 5 434 if $self->errors and $self->on_error_return eq 'encoded'
62 1 433 if $self->errors and $self->on_error_return eq 'tainted'
66 36 397 if $self->errors
76 0 806 unless $self->checks and $self->checks > 0
79 249 544 if $check_name eq 'required'
82 43 501 if ($self->tainted and $self->tainted =~ /\0/) { }
85 129 0 if defined $value
90 364 137 if defined $value
106 841 202 unless $errmsg
119 4 1050 if not $check_string or ref $check_string
124 113 937 $2 ? :
131 1 1049 if $@
148 719 87 if (defined $self->tainted)
152 30 57 if $self->required
163 2 239 unless $check_name and $error
184 1520 302 unless $$self{'errors'}
196 302 0 if @errors