Branch Coverage

blib/lib/MaxMind/DB/Reader/PP.pm
Criterion Covered Total %
branch 33 42 78.5


line true false branch
38 1 21 unless -e $file
41 0 21 unless -r _
67 35 168 unless $pointer
79 88 115 $is_ipv6_addr ? :
81 0 203 unless defined $packed_addr
89 65 138 $self->ip_version == 6 && !$is_ipv6_addr ? :
94 203 12664 if $node >= $self->node_count
101 788 11876 $bit ? :
111 35 168 if ($node == $self->node_count)
117 168 0 if ($node >= $self->node_count)
130 0 1 $self->ip_version == 4 ? :
132 0 1 $self->ip_version == 4 ? :
158 0 353 if $node_callback
164 325 381 if $value == $self->node_count
166 0 381 $self->ip_version == 4 ? :
167 92 289 if $idx
169 352 29 if ($value <= $self->node_count) { }
0 29 elsif ($data_callback) { }
195 1 167 if $resolved > $self->_data_source_size
216 0 11 unless $self->ip_version == 6
222 4 1020 if $node_num >= $self->node_count