Branch Coverage

blib/lib/Game/Tibia/Packet/Login.pm
Criterion Covered Total %
branch 30 44 68.1


line true false branch
62 0 3 if not defined $self->{'version'} or $self->{'version'} >= 980
66 2 1 if ($self->{'versions'}{'client'}{'rsa'})
67 0 2 if (defined $self->{'rsa'} and not &blessed($self->{'rsa'}))
70 2 0 if defined $self->{'rsa'}
73 2 1 if (defined $self->{'packet'})
77 1 1 if ($self->{'versions'}{'client'}{'rsa'})
79 0 1 unless $payload =~ /^\0/u
83 1 1 if ($self->{'versions'}{'client'}{'xtea'})
87 0 2 $self->{'versions'}{'client'}{'accname'} ? :
106 2 0 if defined $self->{'rsa'}
107 0 2 unless ref $self->{'versions'}{'client'}
110 1 1 if ($self->{'versions'}{'client'}{'rsa'})
111 0 1 unless &blessed($rsa)
112 0 1 unless $rsa->size == 128
117 0 2 defined $self->{'character'} ? :
121 0 2 defined $self->{'character'} ? :
123 0 2 $self->{'versions'}{'client'}{'acc_name'} ? :
125 1 1 if $self->{'versions'}{'client'}{'xtea'}
127 0 2 if defined $self->{'character'}
129 1 1 if defined $self->{'hwinfo'} and $self->{'hwinfo'} ne ''
131 1 1 if ($self->{'versions'}{'client'}{'rsa'})
140 0 2 if ($self->{'versions'}{'client'}{'adler32'})