Branch Coverage

blib/lib/HTTP/Cookies/PhantomJS.pm
Criterion Covered Total %
branch 31 40 77.5


line true false branch
29 107 1085 if ($c ne '\\')
35 892 193 if ($c ne 'x')
36 4 888 if (exists $ESCAPES{$c}) { }
46 185 8 if (substr($$str_ref, 0, 1) =~ /[a-f0-9]/)
49 8 0 if (length $c == 1 and $bytes and substr($bytes, -2) ne '\\0')
63 0 2 unless open my $fh, '<', $file
68 0 2 unless (substr($data, 0, 70, '') eq 'cookies="@Variant(\\0\\0\\0\\x7f\\0\\0\\0\\x16QList\\0\\0\\0\\0\\x1')
87 0 296 if ($additional = $cookie_str =~ s/\\\\/\\/g)
98 269 27 substr($tmp, length $key_val, 1) eq ';' ? :
103 0 861 if $path and $domain
104 296 565 if (not $domain and ($domain) = $cookie_parts[$i] =~ /domain=(.+)/)
107 565 0 unless ($path)
113 252 44 substr($domain, 0, 1) eq '.' ? :
128 3 149 if length $str != 2
137 152 444 length $hex ? :
146 0 1 unless open my $fh, '>', $file
155 0 148 if $discard and not $self->{'ignore_discard'}
158 1 147 $val =~ /^"/ ? :
159 0 148 if $secure
161 128 20 if $expires