Branch Coverage

blib/lib/Game/Tibia/Packet.pm
Criterion Covered Total %
branch 24 42 57.1


line true false branch
74 0 6 if not defined $self->{'version'} or $self->{'version'} >= 980
75 6 0 unless ref $self->{'version'}
77 3 3 if ($self->{'packet'} ne '')
85 0 3 defined $self->{'versions'}{'client'}{'adler32'} ? :
106 0 0 if $len + 2 != length $packet
110 0 0 if $a32->digest ne reverse($adler)
138 3 0 if ($self->{'versions'}{'client'}{'xtea'} and defined $XTEA)
155 0 3 if ($self->{'versions'}{'client'}{'adler32'})
180 0 12 if ref $version
182 0 12 unless $version =~ /^\d+/u
189 11 1 if $version >= 761
191 11 1 if $version >= 780
193 3 9 if $version >= 830
195 3 9 if $version >= 841
197 0 12 if $version >= 953
199 0 12 if $version >= 980
201 0 12 if $version >= 1010
203 0 12 if $version >= 1061
205 0 12 if $version >= 1071
207 0 12 if $version >= 1072
209 0 12 if $version >= 1074