Branch Coverage

blib/lib/HTTP/Cookies/Find.pm
Criterion Covered Total %
branch 11 82 13.4


line true false branch
82 0 1 if ($^O =~ /win32/i) { }
1 0 elsif ($^O =~ /solaris/i or $^O =~ /linux/i) { }
96 0 0 if ($@)
105 0 0 if ($@)
111 0 0 if ($sDir eq '')
116 0 0 unless (-d $sDir)
125 0 0 if (-f $sFnameCookies)
133 0 0 if (ref $HTTP::Cookies::Find::oReal)
135 0 0 unless wantarray
145 0 0 unless (-f $sFnameWinIni)
153 0 0 unless (ref $oIniWin)
159 0 0 unless (defined $sFnameNSIni)
164 0 0 unless (-f $sFnameNSIni)
172 0 0 unless (ref $oIniNS)
181 0 0 if (ref $HTTP::Cookies::Find::oReal)
183 0 0 unless wantarray
192 0 0 unless (opendir DIR, $sProfileDir)
200 0 0 if (-d "$sProfileDir/$test" and -f "$sProfileDir/$test/cookies.txt")
207 0 0 unless closedir DIR
208 0 0 unless ($bMozFound)
214 0 0 if (ref $HTTP::Cookies::Find::oReal)
216 0 0 unless wantarray
235 1 0 unless ref $HTTP::Cookies::Find::oReal
239 0 1 if (ref $HTTP::Cookies::Find::oReal)
241 0 0 unless wantarray
249 0 1 if (ref $HTTP::Cookies::Find::oReal)
251 0 0 unless wantarray
259 1 0 unless (-f $sAppregFname)
275 0 1 if (ref $HTTP::Cookies::Find::oReal)
277 0 0 unless wantarray
286 0 1 wantarray ? :
307 0 0 $sClass =~ /Mozilla/ ? :
1 0 $sClass =~ /Netscape/ ? :
0 1 $sClass =~ /Microsoft/ ? :
313 1 0 unless (-f $sFnameCookies)
321 0 0 unless (ref $oRealNS)
334 0 0 unless (ref $oDummy)
340 0 0 if ref $oDummy
355 0 0 unless $val =~ /\@.*$HTTP::Cookies::Find::sHostGlobal/i
357 0 0 unless $val =~ /\\$HTTP::Cookies::Find::sUser\@/
374 0 0 if $HTTP::Cookies::Find::sHostGlobal ne '' and not $sDomain =~ /$HTTP::Cookies::Find::sHostGlobal/i