Branch Coverage

blib/lib/HTML/Tested/Value.pm
Criterion Covered Total %
branch 51 64 79.6


line true false branch
27 0 0 if $@
28 0 0 unless ref $dto
50 0 106 if $dto
56 513 630 if ($caller and ref $caller)
58 11 502 if exists $$caller{$n}
99 0 258 if ref $val
146 5 197 unless defined $val
153 5 201 unless defined $val
167 205 5 if defined $res
210 0 9 unless $c and ref $c eq 'ARRAY'
212 6 3 if ($$c[0] eq 'regexp') { }
1 2 elsif ($$c[0] eq 'defined') { }
2 0 elsif ($$c[1]) { }
216 16 3 defined $v ? :
225 9 0 if $func
242 2 31 if $caller->ht_get_widget_option($n, 'no_validate')
243 2 19 if defined $val and $caller->ht_get_widget_option($n, 'is_integer') and not $val =~ /^\d+$/
249 16 12 if $$vs[$i]($val, $caller)
270 1 127 if $self->options->{'is_trusted'}
271 5 122 if $self->options->{'is_sealed'}
274 0 127 if $dtfs
275 1 126 defined $val && $val eq '' && !$self->options->{'keep_empty_string'} ? :
281 27 327 $caller && ref $caller ? :
282 27 327 $caller && ref $caller ? :
288 0 0 if $val
297 3 115 if ($self->_get_option($caller, $n, 'is_disabled')) { }
0 115 elsif (my $dtfs = $self->_get_option($caller, $n, 'is_datetime')) { }
16 99 elsif ($self->_get_option($caller, $n, 'is_sealed')) { }
3 96 elsif ($self->_get_option($caller, $n, 'is_trusted')) { }
313 16 102 if (defined $dval) { }
3 99 elsif ($self->_get_option($caller, $n, 'skip_undef')) { }
314 1 15 ref $dval eq 'CODE' ? :