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 ? :
159 0 353 if $node_callback
165 325 381 if $value == $self->node_count
167 0 381 $self->ip_version == 4 ? :
168 92 289 if $idx
170 352 29 if ($value <= $self->node_count) { }
0 29 elsif ($data_callback) { }
197 1 167 if $resolved > $self->_data_source_size
218 0 11 unless $self->ip_version == 6
224 4 1020 if $node_num >= $self->node_count