Condition Coverage

lib/Pcore/Util/URI/Host.pm
Criterion Covered Total %
condition 12 23 52.1


and 3 conditions

line !l l&&!r l&&r condition
184 0 90 0 $self->name and $self->is_ipv4 || $self->is_ipv6
193 0 92 9 $self->name and &AnyEvent::Socket::parse_ipv4(scalar $self->name)
202 0 90 3 $self->name and &AnyEvent::Socket::parse_ipv6(scalar $self->name)
265 0 17 5 $name and index($name, 'www.') == 0

or 2 conditions

line l !l condition
325 62 2 $pub_suffix // ''

or 3 conditions

line l !l&&r !l&&!r condition
144 0 0 0 $TLD //= do { my $tlds; foreach my $rec (split(/\n/msu, ${'Pcore'->file->read_text($ENV->share->get('/data/tld.dat'))}, 0)) { my($utf8, $ascii) = split(/;/msu, $rec, 3); $$tlds{$ascii} = $utf8; } ; $tlds }
160 63 2 0 $PUB_SUFFIX //= do { my $pub_suffix; foreach my $rec (split(/\n/msu, ${'Pcore'->file->read_text($ENV->share->get('/data/pub_suffix.dat'))}, 0)) { my($utf8, $ascii) = split(/;/msu, $rec, 3); $$pub_suffix{$ascii} = $utf8; } ; $pub_suffix }
184 0 0 90 $self->is_ipv4 || $self->is_ipv6