Branch Coverage

blib/lib/HTML/HTML5/Parser/UA.pm
Criterion Covered Total %
branch 0 28 0.0


line true false branch
21 0 0 if (ref $ua and $ua->isa('HTTP::Tiny') and $uri =~ /^https?:/i)
23 0 0 if (ref $ua and $ua->isa('LWP::UserAgent'))
25 0 0 if (UNIVERSAL::can('LWP::UserAgent', 'can') and not $NO_LWP)
27 0 0 if ($uri =~ /^file:/i)
36 0 0 unless (eval 'require LWP::UserAgent; 1')
95 0 0 if ($$response{'headers'}{'content-type'} =~ /charset=(\S+)/)
103 0 0 unless defined $$response{'decoded_content'}
111 0 0 ref $_ ? :
115 0 0 if (not -e $file) { }
0 0 elsif (not -r $file) { }
124 0 0 if (open my $fh, '<', $file) { }
130 0 0 if $file =~ /\.xml$/i
131 0 0 if $file =~ /\.xht(ml)?$/i
132 0 0 if $file =~ /\.html?$/i