| line |
true |
false |
branch |
|
97
|
3 |
453 |
if (not defined $ua) { } |
|
|
2 |
451 |
elsif (ref($ua) =~ /^HTTP::Headers/) { } |
|
98
|
2 |
1 |
exists $ENV{'HTTP_USER_AGENT'} && defined $ENV{'HTTP_USER_AGENT'} ? : |
|
115
|
1 |
455 |
if (exists $opt->{'skip'}) |
|
118
|
2 |
64 |
if grep {$p eq $_;} @{$$opt{"skip"};} |
|
137
|
2 |
4 |
if (not defined $ua) { } |
|
|
0 |
4 |
elsif (ref($ua) =~ /^HTTP::Headers/) { } |
|
138
|
1 |
1 |
exists $ENV{'HTTP_USER_AGENT'} && defined $ENV{'HTTP_USER_AGENT'} ? : |
|
150
|
2028 |
444 |
if (@_ == 1) |
|
151
|
434 |
1594 |
unless $_[0]{'_parsed'} |
|
162
|
434 |
4 |
if (ref $self eq __PACKAGE__) { } |
|
|
2 |
2 |
elsif ($self eq __PACKAGE__) { } |
|
191
|
153 |
109 |
+(shift())->_result->{'is_bot'} ? : |
|
195
|
16 |
246 |
+(shift())->_result->{'is_ios'} ? : |
|
199
|
23 |
239 |
+(shift())->_result->{'is_android'} ? : |
|
203
|
34 |
228 |
+(shift())->_result->{'is_linux'} ? : |
|
207
|
39 |
225 |
+(shift())->_result->{'is_windows'} ? : |
|
211
|
1 |
258 |
+(shift())->_result->{'is_chromeos'} ? : |
|
215
|
4 |
189 |
unless +(shift())->_result->{'version'} |
|
220
|
172 |
101 |
if +(shift())->{'_contain_mozilla'} |
|
224
|
456 |
422 |
if +(shift())->{'_contain_mozilla_top'} |
|
227
|
21 |
1573 |
if index(+(shift())->{'_ua'}, shift()) == 0 |
|
231
|
1932 |
28856 |
if index(+(shift())->{'_ua'}, shift()) != -1 |