| blib/lib/Data/Validate/Sanctions.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 42 | 81 | 51.8 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 64 | 0 | 0 | 0 | not $new_data->{$k}{'error'} and $self->{'_data'}{$k}{'error'} |
| 151 | 133 | 0 | 0 | $args->{$field} and $entry->{$field} |
| 0 | 0 | 0 | $args->{$field} and $entry->{$field} and @{$entry->{$field}} | |
| 331 | 0 | 5 | 9 | $self->{'_data'} and $self->{'last_data_load'} + $self->IGNORE_OPERATION_INTERVAL > time |
| 335 | 5 | 0 | 0 | $file_modify_time <= $self->{'last_modification'} and $self->{'_data'} |
| 434 | 0 | 149 | 2 | $name_matches_count == 1 and $small_tokens_size == 1 |
| line | l | !l | condition |
|---|---|---|---|
| 35 | 0 | 5 | delete $args{'storage'} // "" |
| 60 | 0 | 0 | $self->{'_data'}{$k} //= {} |
| 61 | 0 | 0 | $self->{'_data'}{$k}{'updated'} //= 0 |
| 62 | 0 | 0 | $self->{'_data'}{$k}{'content'} //= [] |
| 100 | 0 | 0 | $_->{'updated'} // 0 |
| 105 | 3 | 1 | shift() // die("sanction_file is needed") |
| 279 | 18 | 9 | $entry->{$dob_field} //= [] |
| 287 | 0 | 12 | $entry->{'dob_text'} // [] |
| 307 | 0 | 1 | $match->{'entry'}{'dob_text'} // [] |
| 324 | 14 | 0 | $self->{'last_modification'} //= 0 |
| 325 | 14 | 0 | $self->{'last_index'} //= 0 |
| 326 | 14 | 0 | $self->{'last_data_load'} //= 0 |
| 327 | 9 | 5 | $self->{'_data'} //= {} |
| 328 | 9 | 5 | $self->{'_sanctioned_name_tokens'} //= {} |
| 329 | 9 | 5 | $self->{'_token_sanctioned_names'} //= {} |
| 363 | 5 | 0 | $self->{'_data'} //= {} |
| 366 | 7 | 1 | $self->{'_data'}{$source}{'content'} // [] |
| 372 | 3467 | 23102 | $self->{'_index'}{$name} // [] |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 41 | 5 | 0 | 0 | $args{'sanction_file'} // _default_sanction_file() |
| 49 | 0 | 5 | 0 | ref $class || $class |
| 69 | 0 | 0 | 0 | $self->{'_data'}{$k}{'updated'} != $new_data->{$k}{'updated'} or scalar @{$self->{'_data'}{$k}{'content'}} != scalar @{$new_data->{$k}{'content'}} |
| 111 | 5 | 2 | 0 | $sanction_file //= _default_sanction_file() |
| 244 | 12 | 2 | 0 | $last_name || () |
| 286 | 10 | 1 | 1 | @{$entry->{'dob_epoch'}} || @{$entry->{'dob_year'}} |
| 288 | 0 | 1 | 11 | $has_dob_text or $has_no_epoch_or_year |
| 398 | 2 | 0 | 0 | $ENV{'SANCTION_FILE'} // File::ShareDir::dist_file("Data-Validate-Sanctions", "sanctions.yml") |
| 434 | 14 | 2 | 149 | $name_matches_count > 1 or $name_matches_count == 1 and $small_tokens_size == 1 |