Condition Coverage

blib/lib/Data/Validate/Sanctions/Fetcher.pm
Criterion Covered Total %
condition 47 74 63.5


and 3 conditions

line !l l&&!r l&&r condition
310 0 0 7 @info and _date_to_epoch($info[1])
390 16 0 20 not $dob->{'-birthdate'} and $dob->{'-year'}

or 2 conditions

line l !l condition
76 7 1 $args{'ofac_sdn_url'} || 'https://www.treasury.gov/ofac/downloads/sdn_xml.zip'
7 1 $args{'ofac_consolidated_url'} || 'https://www.treasury.gov/ofac/downloads/consolidated/consolidated.xml'
8 0 $args{'hmt_url'} || 'https://ofsistorage.blob.core.windows.net/publishlive/ConList.csv'
122 10842 774 country2code($value) // ""
242 19286 16876 $entry->{$parent}{$child} // []
254 3240 2787 $entry->{'akaList'}{'aka'} // []
255 9538 6027 $_->{'category'} // "strong"
256 13709 33 $_->{'firstName'} // ""
13742 0 $_->{'lastName'} // ""
275 4597 1430 $entry->{'idList'}{'id'} // []
376 44 68 $entry->{$_} //= []
381 28 0 $entry->{'nameAlias'} // []
383 0 0 $_->{'-firstName'} // ""
0 0 $_->{'-lastName'} // ""
415 4 0 $ref->{'-generationDate'} // ""
416 4 0 $date_parts[0] // ""
438 0 8 $args{'retries'} // 3
500 8 0 $retries //= 3
525 2 6 $entries // die("An error occurred while fetching data from '${src_url}' due to $error_log\n")

or 3 conditions

line l !l&&r !l&&!r condition
53 2 0 6 $args{'eu_token'} // $ENV{'EU_SANCTIONS_TOKEN'}
54 6 0 2 $args{'eu_url'} || $ENV{'EU_SANCTIONS_URL'}
56 2 5 1 $eu_token or $eu_url
59 1 1 0 $eu_url ||= "https://webgate.ec.europa.eu/fsd/fsf/public/files/xmlFullSanctionsList_1_1/content?token=$eu_token"
182 112 7 42 $1 == 0 or $2 == 0
184 0 0 0 $2 == 0 or $3 == 0
245 18182 6134 0 $_->{$attribute} // ()
396 0 0 8 $_->{'-zipCode'} or $_->{'-poBox'}
398 4 0 0 $_->{'-number'} || ()
399 8 0 0 $_->{'-number'} || ()