Branch Coverage

blib/lib/LWP/MediaTypes.pm
Criterion Covered Total %
branch 34 46 73.9


line true false branch
47 0 24 unless defined $file
50 4 20 if (ref $file) { }
63 10 18 if (exists $suffixEncoding{$_})
67 2 16 if (exists $suffixEncoding{lc $_})
73 14 2 if (exists $suffixType{$_})
77 0 2 if (exists $suffixType{lc $_})
85 10 14 unless (defined $ct)
87 8 2 if (defined $fullname) { }
88 4 4 -T $fullname ? :
95 1 23 if ($header)
97 1 0 if @encoding
100 12 12 wantarray ? :
105 1 0 if (not wantarray and @_ == 1 and not $_[0] =~ /\*/)
111 2 0 if (s/\*/.*/) { }
113 95 1671 if $type =~ /^$_$/i
119 0 0 if lc $type eq $ltype
123 2 0 wantarray ? :
143 2065 0 if @exts
164 1 0 if defined $ENV{'HOME'}
169 1 0 unless (@files)
175 10 3 unless open TYPE, $typefile
177 2373 2064 if /^\s*#/
178 0 2064 if /^\s*$/