Condition Coverage

blib/lib/Logfile/EPrints/Hit.pm
Criterion Covered Total %
condition 9 29 31.0


or 2 conditions

line l !l condition
161 0 0 $v || 'n/a'

or 3 conditions

line l !l&&r !l&&!r condition
143 0 1 0 ref $class || $class
200 1 0 0 _getipbyname($_[0]{'hostname'}) || $_[0]{'hostname'}
1202 1 0 $_[0]{'address'} ||= _getipbyname($_[0]{'hostname'}) || $_[0]{'hostname'}
210 0 0 0 $_[0]{'country'} ||= $Logfile::EPrints::Hit::COUNTRY_DB->country_code_by_addr($_[0]->address)
220 0 0 0 $_[0]{'organisation'} ||= &Encode::decode('iso-8859-1', $Logfile::EPrints::Hit::ORG_DB->org_by_name($_[0]->address))
225 3 0 1 $_[0]{'hostname'} ||= gethostbyaddr(inet_aton($_[0]->address), 2)
230 52 72 0 $_[0]{'utime'} ||= Date::Parse::str2time($_[0]{'date'})
236 0 2 0 $_[0]{'datetime'} ||= _time2datetime($_[0]->utime)
268 0 0 0 length $3 > 2 || length $2 > 3