Branch Coverage

blib/lib/Game/Tibia/Packet.pm
Criterion Covered Total %
branch 26 44 59.0


line true false branch
57 0 8 if exists $params{'tibia'} and not $params{'tibia'} =~ /^\d+$/u
83 0 7 if not defined $self->{'version'} or $self->{'version'} >= 980
85 7 0 unless ref $self->{'version'}
87 4 3 if ($self->{'packet'} ne '')
95 1 3 defined $self->{'versions'}{'client'}{'adler32'} ? :
116 0 0 if $len + 2 != length $packet
120 0 0 if $a32->digest ne reverse($adler)
148 3 0 if ($self->{'versions'}{'client'}{'xtea'} and defined $XTEA)
165 0 3 if ($self->{'versions'}{'client'}{'adler32'})
190 0 14 if ref $version
192 0 14 unless $version =~ /^\d+/u
199 13 1 if $version >= 761
201 13 1 if $version >= 780
203 5 9 if $version >= 830
205 5 9 if $version >= 841
207 0 14 if $version >= 953
209 0 14 if $version >= 980
211 0 14 if $version >= 1010
213 0 14 if $version >= 1061
215 0 14 if $version >= 1071
217 0 14 if $version >= 1072
219 0 14 if $version >= 1074