Branch Coverage

blib/lib/Game/Tibia/Cam.pm
Criterion Covered Total %
branch 23 50 46.0


line true false branch
64 0 2 unless ($self->{'is_str'})
66 0 0 if not defined $file or $file eq ''
69 0 0 unless open my $fh, '<:raw', $file
74 0 0 unless defined $self->{'rec'}
81 0 2 unless defined $self->{'min_version'}
82 0 2 if $self->{'sig'} >= 1282
86 0 2 if $self->{'sig'} >= 770
87 2 0 $self->{'sig'} == 769 ? :
114 4 0 if $sig == 769
115 0 0 if $sig == 770
116 0 0 if $sig == 1026
117 0 0 if $sig == 1282
118 0 0 if $sig == 1538
127 1 1 wantarray ? :
175 3 201 unless defined $self->{'offset'}
176 3 198 if $self->{'eof'}
181 0 198 unless $len == length $data
184 3 195 if (++$self->{'pnum'} == $self->{'ptotal'})
208 1 1 if (defined $code) { }
221 1 1 unless (defined $self->{'duration'})
249 1 0 unless ($fh)
250 0 1 if (defined $args{'file'}) { }
251 0 0 unless open $fh, '>:raw', $args{'file'}
253 0 1 unless open $fh, '>:raw', \$pcap
261 1 0 if ($args{'synthesize_login'} == 1)