Branch Coverage

blib/lib/Parse/HTTP/UserAgent/Base/IS.pm
Criterion Covered Total %
branch 23 24 95.8


line true false branch
31 0 188 @{$others;} && index($others->[-1], 'Safari') != -1 ? :
36 188 $extra && index($extra->[0], 'AppleWebKit') != -1 ? :
42 224 index($str, 'Android') != -1 ? :
20 266 index($str, 'Chrome') != -1 ? :
40 4 60 unless $chrome and $safari
51 40 190 if ($has_android and $has_safari)
54 2 128 if (@{$others;} == 0 and @{$thing;} > 0 and $thing->[-1] and index($thing->[-1], 'AppleWebKit') != -1)
72 252 82 unless $extra and $extra->[1]
75 2 80 $moz_with_name ? :
83 74 2 if ref $extra ne 'ARRAY' or @{$extra;} != 1 or index(lc $extra->[0], 'firefox/') == -1
94 66 26 if $self->_generic_name_version(@args) or $self->_generic_compatible(@args) or $self->_generic_moz_thing(@args)
123 20 934 if $s eq 'U' or $s eq 'I' or $s eq 'N'