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 9975 773 country2code($value) // ""
242 17367 15681 $entry->{$parent}{$child} // []
254 2969 2539 $entry->{'akaList'}{'aka'} // []
255 9092 5508 $_->{'category'} // "strong"
256 12807 33 $_->{'firstName'} // ""
12840 0 $_->{'lastName'} // ""
275 4059 1449 $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")

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 16737 5557 0 $_->{$attribute} // ()
396 0 0 8 $_->{'-zipCode'} or $_->{'-poBox'}
398 4 0 0 $_->{'-number'} || ()
399 8 0 0 $_->{'-number'} || ()