blib/lib/Data/Validate/Sanctions.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 39 | 74 | 52.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
59 | 0 | 0 | 0 | not $new_data->{$k}{'error'} and $self->{'_data'}{$k}{'error'} |
146 | 126 | 0 | 0 | $args->{$field} and $entry->{$field} |
0 | 0 | 0 | $args->{$field} and $entry->{$field} and @{$entry->{$field}} | |
325 | 5 | 0 | 9 | &Data::Validate::Sanctions::stat($sanction_file)->mtime <= $self->{'last_time'} and $self->{'_data'} |
419 | 0 | 129 | 2 | $name_matches_count == 1 and $small_tokens_size == 1 |
line | l | !l | condition |
---|---|---|---|
33 | 0 | 5 | delete $args{'storage'} // "" |
55 | 0 | 0 | $self->{'_data'}{$k} //= {} |
56 | 0 | 0 | $self->{'_data'}{$k}{'updated'} //= 0 |
57 | 0 | 0 | $self->{'_data'}{$k}{'content'} //= [] |
95 | 0 | 0 | $_->{'updated'} // 0 |
100 | 3 | 1 | shift() // die("sanction_file is needed") |
274 | 16 | 9 | $entry->{$dob_field} //= [] |
282 | 0 | 11 | $entry->{'dob_text'} // [] |
302 | 0 | 1 | $match->{'entry'}{'dob_text'} // [] |
319 | 14 | 0 | $self->{'last_time'} //= 0 |
320 | 9 | 5 | $self->{'_data'} //= {} |
321 | 9 | 5 | $self->{'_sanctioned_name_tokens'} //= {} |
322 | 9 | 5 | $self->{'_token_sanctioned_names'} //= {} |
351 | 5 | 0 | $self->{'_data'} //= {} |
354 | 7 | 1 | $self->{'_data'}{$source}{'content'} // [] |
360 | 3467 | 23102 | $self->{'_index'}{$name} // [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
39 | 5 | 0 | 0 | $args{'sanction_file'} // _default_sanction_file() |
44 | 0 | 5 | 0 | ref $class || $class |
64 | 0 | 0 | 0 | $self->{'_data'}{$k}{'updated'} != $new_data->{$k}{'updated'} or scalar @{$self->{'_data'}{$k}{'content'}} != scalar @{$new_data->{$k}{'content'}} |
106 | 5 | 2 | 0 | $sanction_file //= _default_sanction_file() |
239 | 12 | 2 | 0 | $last_name || () |
281 | 9 | 1 | 1 | @{$entry->{'dob_epoch'}} || @{$entry->{'dob_year'}} |
283 | 0 | 1 | 10 | $has_dob_text or $has_no_epoch_or_year |
383 | 2 | 0 | 0 | $ENV{'SANCTION_FILE'} // File::ShareDir::dist_file("Data-Validate-Sanctions", "sanctions.yml") |
419 | 13 | 2 | 129 | $name_matches_count > 1 or $name_matches_count == 1 and $small_tokens_size == 1 |