Branch Coverage

blib/lib/HTTP/Cookies/Netscape.pm
Criterion Covered Total %
branch 18 24 75.0


line true false branch
16 1 3 unless open my $fh, '<', $file
19 0 3 unless ($magic =~ /^#(?: Netscape)? HTTP Cookie File/)
28 12 12 if $line =~ /^\s*\#/
29 6 6 if $line =~ /^\s*$/
43 0 2 @_ == 1 ? :
46 0 2 if keys %args > 2
49 0 2 unless open my $fh, '>', $file
63 1 3 if $discard and not $args{'ignore_discard'}
64 2 1 $expires ? :
65 1 2 if $now > $expires
66 0 2 $secure ? :
67 0 2 $domain =~ /^\./ ? :