Condition Coverage

blib/lib/Mobile/UserAgent.pm
Criterion Covered Total %
condition 23 51 45.1


and 3 conditions

line !l l&&!r l&&r condition
207 3 0 26 defined $6 and length $6
234 69 0 0 defined $6 and length $6
285 4 0 27 @parts >= 4 and $parts[0] eq 'compatible'
4 18 9 @parts >= 4 and $parts[0] eq 'compatible' and $parts[2] eq 'Windows CE'
287 0 1 0 @parts >= 5 and $parts[4] eq 'PPC' || lc $parts[4] eq 'smartphone'
289 0 0 8 @parts >= 5 and $parts[4] =~ /^\d{1,4}x\d{1,4}$/i
305 4 0 18 @parts >= 4 and $parts[0] eq 'compatible'
4 0 18 @parts >= 4 and $parts[0] eq 'compatible' and $parts[3] =~ /^(Nokia|Sony)\s*(\S+)$/
315 0 0 4 @parts and $parts[0] =~ m[^MobilePhone ([^/]+)/([A-Z]+/)?(\d+\.\d+)$]
320 0 0 0 @parts >= 3 and $parts[0] eq 'compatible'
0 0 0 @parts >= 3 and $parts[0] eq 'compatible' and $parts[1] =~ /^(Nokia)\s*(\S+)$/
368 0 0 1 defined $4 and length $4

or 3 conditions

line l !l&&r !l&&!r condition
22 1991 0 0 shift() || $ENV{'HTTP_USER_AGENT'}
26 0 1991 0 ref $proto || $proto
95 0 0 1415 $vendor eq 'PT' or $vendor eq 'PANTECH'
287 3 5 1 $parts[3] eq 'PPC' or lc $parts[3] eq 'smartphone'
1 0 0 $parts[4] eq 'PPC' || lc $parts[4] eq 'smartphone'