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 12762 if $node >= $self->node_count
101 846 11916 $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 937 if $node_callback
165 909 965 if $value == $self->node_count
167 0 965 $self->ip_version == 4 ? :
168 304 661 if $idx
170 936 29 if ($value <= $self->node_count) { }
0 29 elsif ($data_callback) { }
196 1 167 if $resolved > $self->_data_source_size
217 0 11 unless $self->ip_version == 6
223 1 1023 if $node_num >= $self->node_count