blib/lib/Data/Validate/CSV/Column.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 14 | 44 | 31.8 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
142 | 27 | 0 | 0 | $self->has_default and $v eq '' || !defined($v) |
150 | 12 | 11 | 0 | $obj and $base eq 'boolean' |
12 | 11 | 0 | $obj and $base =~ /duration/u | |
12 | 11 | 0 | $obj and $base =~ /datetime/u | |
12 | 11 | 0 | $obj and $is_dt{$base} |
line | l | !l | condition |
---|---|---|---|
187 | 4 | 0 | $self->datatype->{'base'} || 'string' |
274 | 0 | 0 | $decimal_char //= '.' |
275 | 0 | 0 | $group_char //= ',' |
300 | 0 | 0 | $numeric_pattern_char{$next} || die("unrecognized numeric pattern char: $next") |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
124 | 0 | 0 | 8 | $_ eq '' || !defined($_) |
142 | 0 | 0 | 0 | $v eq '' || !defined($v) |
153 | 0 | 0 | 0 | $c eq 'true' || $c eq '1' |
0 | 0 | 0 | $c eq 'false' || $c eq '0' | |
182 | 8 | 0 | 17 | $self->has_separator || @_ > 3 |
311 | 0 | 0 | 0 | not defined $pattern or $value =~ /$regexp/u |
350 | 10 | 0 | 0 | $target_patterns{$target_type} || $target_patterns{'datetimestamp'} |